build: dotnet: update publisher policy

This commit is contained in:
Bill Zissimopoulos 2017-04-10 23:03:16 -07:00
parent d9fcc8ca1c
commit c7ca500dd5
2 changed files with 4 additions and 4 deletions

View File

@ -91,14 +91,14 @@
set MyAssemblyVersion=$(MyAssemblyVersion) set MyAssemblyVersion=$(MyAssemblyVersion)
setlocal EnableDelayedExpansion setlocal EnableDelayedExpansion
if exist $(OutDir)winfsp.net.policy.xml del $(OutDir)winfsp.net.policy.xml if exist $(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).config del $(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).config
for /f "delims=" %25%25l in ($(ProjectDir)winfsp.net.policy.xml) do ( for /f "delims=" %25%25l in ($(ProjectDir)winfsp.net.policy.config) do (
set line=%25%25l set line=%25%25l
echo !line! >>$(OutDir)winfsp.net.policy.xml echo !line! >>$(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).config
) )
call "$(DevEnvDir)..\Tools\VsDevCmd.bat" call "$(DevEnvDir)..\Tools\VsDevCmd.bat"
al /link:$(OutDir)winfsp.net.policy.xml /out:$(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).dll /keyfile:$(ProjectDir)$(ProjectName).snk al /link:$(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).config /out:$(OutDir)policy.$(MyAssemblyPolicyVersion).$(TargetName).dll /keyfile:$(ProjectDir)$(ProjectName).snk
</PostBuildEvent> </PostBuildEvent>
</PropertyGroup> </PropertyGroup>
</Project> </Project>