Skip to content

Commit

Permalink
Try to make source generator work with copy local
Browse files Browse the repository at this point in the history
  • Loading branch information
ericstj committed May 25, 2021
1 parent 82d0e7f commit e80fbd3
Showing 1 changed file with 1 addition and 12 deletions.
13 changes: 1 addition & 12 deletions SourceGeneratorProject/SourceGeneratorProject.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>

<ItemGroup Label="Package References">
Expand All @@ -10,16 +11,4 @@
<PackageReference Include="System.Text.Encodings.Web" Version="5.0.1" GeneratePathProperty="true" PrivateAssets="all" />
</ItemGroup>

<PropertyGroup>
<GetTargetPathDependsOn>$(GetTargetPathDependsOn);GetDependencyTargetPaths</GetTargetPathDependsOn>
</PropertyGroup>

<Target Name="GetDependencyTargetPaths">
<ItemGroup>
<TargetPathWithTargetPlatformMoniker Include="$(PKGSystem_Text_Json)\lib\netstandard2.0\System.Text.Json.dll" IncludeRuntimeDependency="false" />
<TargetPathWithTargetPlatformMoniker Include="$(PKGSystem_Text_Encodings_Web)\lib\netstandard2.0\System.Text.Encodings.Web.dll" IncludeRuntimeDependency="false" />
</ItemGroup>
<Message Importance="high" Text="Path (S.T.J): $(PKGSystem_Text_Json)"/>
<Message Importance="high" Text="Path (Encodings): $(PKGSystem_Text_Encodings_Web)"/>
</Target>
</Project>

0 comments on commit e80fbd3

Please sign in to comment.