mirror of
https://github.com/dotnet/skills.git
synced 2026-09-20 09:49:54 +08:00
2f9922e073
* Initial plan * Remove LangVersion=latest from skill docs and test fixtures Per official C# docs, LangVersion should not be set to `latest` as it causes builds to silently vary across machines with different SDKs. Best practice is to omit LangVersion entirely and let the TFM determine the correct C# version automatically. - Update msbuild-modernization/SKILL.md: remove LangVersion=latest from example and add explicit guidance to omit LangVersion - Update directory-build-organization/SKILL.md: remove from example - Update directory-build-organization/references/multi-level-examples.md: remove from all 4 examples - Update msbuild-antipatterns/SKILL.md: remove from AP-08 examples - Remove LangVersion=latest from 11 test fixture project files Agent-Logs-Url: https://github.com/dotnet/skills/sessions/7a3d2722-770b-4010-a6e8-70c92668ad4c Co-authored-by: ViktorHofer <7412651+ViktorHofer@users.noreply.github.com> * Fix LangVersion guidance and stale eval rubric reference Agent-Logs-Url: https://github.com/dotnet/skills/sessions/e89afcd8-7227-424b-9c8c-9ec0ce7113c2 Co-authored-by: ViktorHofer <7412651+ViktorHofer@users.noreply.github.com> --------- Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com> Co-authored-by: ViktorHofer <7412651+ViktorHofer@users.noreply.github.com>
20 lines
841 B
XML
20 lines
841 B
XML
<Project>
|
|
<PropertyGroup>
|
|
<Nullable>enable</Nullable>
|
|
<ImplicitUsings>enable</ImplicitUsings>
|
|
</PropertyGroup>
|
|
|
|
<!-- BUG: TargetFramework is EMPTY during .props evaluation for single-TFM projects.
|
|
This condition will never match, so GenerateDocumentationFile will never be set.
|
|
Move TFM-conditional logic to Directory.Build.targets instead. -->
|
|
<PropertyGroup Condition="'$(TargetFramework)' == 'net8.0'">
|
|
<GenerateDocumentationFile>true</GenerateDocumentationFile>
|
|
</PropertyGroup>
|
|
|
|
<!-- BUG: Analyzer package without PrivateAssets — leaks analyzer to downstream consumers.
|
|
Should use <PrivateAssets>all</PrivateAssets> and <IncludeAssets>... analyzers</IncludeAssets>. -->
|
|
<ItemGroup>
|
|
<PackageReference Include="StyleCop.Analyzers" Version="1.2.0-beta.556" />
|
|
</ItemGroup>
|
|
</Project>
|