Skip to content

Commit 94665f5

Browse files
committed
Fix compile
1 parent 2e50f5f commit 94665f5

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

Directory.Build.props

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,10 @@
1515
<PropertyGroup>
1616
<!--
1717
NETSDK1138: 目标框架 netxx 不受支持,将来不会收到安全更新。
18-
NU5100: 程序集不在 lib 文件夹内
18+
NU5100: 程序集不在 lib 文件夹内。
19+
NU5128: 依赖的框架没有完全匹配项。
1920
-->
20-
<NoWarn>$(NoWarn);NETSDK1138;NU5100</NoWarn>
21+
<NoWarn>$(NoWarn);NETSDK1138;NU5100;NU5128</NoWarn>
2122
</PropertyGroup>
2223

2324
<!--库信息 -->

src/dotnetCampus.LatestCSharpFeatures/dotnetCampus.LatestCSharpFeatures.csproj

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFrameworks>net8.0;netcoreapp3.0;netstandard2.0;net40</TargetFrameworks>
4+
<TargetFrameworks>net8.0;netstandard2.0;net40</TargetFrameworks>
55
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
66
<RootNamespace>System.Diagnostics.CodeAnalysis</RootNamespace>
77
<Description>This comprehensive package provides support for the latest C# language features in your project, enabling older .NET projects to use newer C# language constructs. Currently includes support for 'nullable', 'init', and 'required' keywords. The types introduced are internal, confining these features to the project itself without affecting other projects that reference it. By installing this package, you get all the newest C# features in one place, eliminating the need to install separate packages for each feature. Future updates will include more new features as they are released.</Description>
@@ -10,7 +10,7 @@
1010

1111
<Target Name="_IncludeAllDependencies" BeforeTargets="_GetPackageFiles">
1212
<ItemGroup>
13-
<None Include="$(OutputPath)..\dotnetCampus.LatestCSharpFeatures.Analyzer\$(Configuration)\**\*.dll" Pack="True" PackagePath="analyzers\dotnet\cs" />
13+
<None Include="$(OutputPath)..\..\dotnetCampus.LatestCSharpFeatures.Analyzer\$(Configuration)\**\*.dll" Pack="True" PackagePath="analyzers\dotnet\cs" />
1414
</ItemGroup>
1515
</Target>
1616

0 commit comments

Comments
 (0)