Skip to content

Commit 35c281c

Browse files
committed
fix build of generators package
1 parent eb694d4 commit 35c281c

1 file changed

Lines changed: 5 additions & 20 deletions

File tree

src/Whaally.Domain.Generators/Whaally.Domain.Generators.csproj

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,13 @@
1111

1212
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
1313

14-
<GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
14+
<WarningsNotAsErrors>
15+
NU5128; <!-- Some target frameworks declared in the dependencies group of the nuspec and the lib/ref folder do not have exact matches in the other location. -->
16+
</WarningsNotAsErrors>
17+
1518
</PropertyGroup>
1619

17-
<ItemGroup>
18-
<PackageReference Include="DotNetGraph"
19-
Version="3.3.0"
20-
GeneratePathProperty="true"
21-
PrivateAssets="all"/>
22-
20+
<ItemGroup>
2321
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="5.0.0" PrivateAssets="all" />
2422
<PackageReference Include="Microsoft.CodeAnalysis.Analyzers" Version="3.11.0" PrivateAssets="all" />
2523

@@ -28,17 +26,4 @@
2826
<PackageReference Include="System.Text.Json" Version="10.0.7" />
2927
</ItemGroup>
3028

31-
<ItemGroup>
32-
<Compile Remove="CommandResultInvocationGenerator.cs" />
33-
</ItemGroup>
34-
35-
<Target Name="GetDependencyTargetPaths">
36-
<ItemGroup>
37-
<TargetPathWithTargetPlatformMoniker Include="$(PKGDotNetGraph)\lib\netstandard2.0\DotNetGraph.dll" IncludeRuntimeDependency="false" />
38-
<!-- Pack both our DLL and the dependencies into a generated Nuget Package -->
39-
<None Include="$(OutputPath)\$(AssemblyName).dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
40-
<None Include="$(PKGDotNetGraph)\lib\netstandard2.0\DotNetGraph.dll" Pack="true" PackagePath="analyzers/dotnet/cs" Visible="false" />
41-
</ItemGroup>
42-
</Target>
43-
4429
</Project>

0 commit comments

Comments
 (0)