diff --git a/MSBuild/Robust.Trimming.targets b/MSBuild/Robust.Trimming.targets new file mode 100644 index 000000000..f797b89a0 --- /dev/null +++ b/MSBuild/Robust.Trimming.targets @@ -0,0 +1,122 @@ + + + + + + + + false + + + false + + + + + + + + + + + + + + + + + + + link + copy + <_ExtraTrimmerArgs>--skip-unresolved true $(_ExtraTrimmerArgs) + $(TreatWarningsAsErrors) + true + + + + + Copy + + + Link + + + + + + <__PDBToLink Include="@(ResolvedFileToPublish)" Exclude="@(RobustAssemblyToLink->'%(RelativeDir)%(Filename).pdb')" /> + <_PDBToLink Include="@(ResolvedFileToPublish)" Exclude="@(__PDBToLink)" /> + + + + <_LinkedResolvedFileToPublishCandidate Include="@(RobustAssemblyToLink->'$(IntermediateLinkDir)%(Filename)%(Extension)')" /> + <_LinkedResolvedFileToPublishCandidate Include="@(_PDBToLink->'$(IntermediateLinkDir)%(Filename)%(Extension)')" /> + + + + + + <_TrimmerFeatureSettings Include="@(RuntimeHostConfigurationOption)" + Condition="'%(RuntimeHostConfigurationOption.Trim)' == 'true'" /> + + + + + + + + + + + <_LinkedResolvedFileToPublish Include="@(_LinkedResolvedFileToPublishCandidate)" Condition="Exists('%(Identity)')" /> + + + + + + + diff --git a/Robust.Client/Robust.Client.csproj b/Robust.Client/Robust.Client.csproj index f9aaa14ba..0a574f578 100644 --- a/Robust.Client/Robust.Client.csproj +++ b/Robust.Client/Robust.Client.csproj @@ -8,6 +8,7 @@ false ../bin/Client NU1701 + true @@ -44,10 +45,16 @@ + + + + + ../Tools +