11<?xml version =" 1.0" encoding =" utf-8" ?>
22<Project ToolsVersion =" 4.0" DefaultTargets =" Build" xmlns =" http://schemas.microsoft.com/developer/msbuild/2003" >
3- <Import Project =" $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory),RoslynCodeProvider.sln))\tools\RoslynCodeProvider.settings.targets" />
3+ <Import Project =" $([MSBuild]::GetDirectoryNameOfFileAbove($(MSBuildThisFileDirectory),RoslynCodeProvider.sln))\tools\RoslynCodeProvider.settings.targets" />
4+ <PropertyGroup >
5+ <AssemblyName >$(MSBuildProjectName)</AssemblyName >
6+ <NuGetPackageId >$(MSBuildProjectName)</NuGetPackageId >
7+ <NuSpecFile >$(MSBuildProjectName).nuspec</NuSpecFile >
8+ <IsPackage >true</IsPackage >
9+ </PropertyGroup >
10+ <ItemGroup >
11+ <NuGetContent Include =" $(AssemblyName).dll" >
12+ <Source >$(AssemblyPath)</Source >
13+ <Destination >lib\net45</Destination >
14+ </NuGetContent >
15+ <NuGetContent Include =" $(AssemblyName).xml" >
16+ <Source >$(OutputPath)</Source >
17+ <Destination >lib\net45</Destination >
18+ </NuGetContent >
19+ <NuGetContent Include =" $(AssemblyName).pdb" Condition =" '$(NuGetPackSymbols)' == 'true'" >
20+ <Source >$(OutputPath)</Source >
21+ <Destination >lib\net45</Destination >
22+ </NuGetContent >
23+ <NuGetContentProject Include =" $(RepositoryRoot)\src\$(MSBuildProjectName)\$(MSBuildProjectName).csproj" Condition =" '$(NuGetPackSymbols)' == 'true'" />
24+ <NuGetContent Include =" Content\net45\*" >
25+ <Destination >content\net45</Destination >
26+ </NuGetContent >
27+ <NuGetContent Include =" Content\net46\*" >
28+ <Destination >content\net46</Destination >
29+ </NuGetContent >
30+ <NuGetContent Include =" Content\net472\*" >
31+ <Destination >content\net472</Destination >
32+ </NuGetContent >
33+ <NuGetContent Include =" build\*" >
34+ <Destination >build\net45</Destination >
35+ </NuGetContent >
36+ <NuGetContent Include =" build\*" >
37+ <Destination >build\net472</Destination >
38+ </NuGetContent >
39+ <NuGetContent Include =" build\*" >
40+ <Destination >build\net46</Destination >
41+ </NuGetContent >
42+ <NuGetContent Include =" build\net45\*" >
43+ <Destination >build\net45</Destination >
44+ </NuGetContent >
45+ <NuGetContent Include =" build\net46\*" >
46+ <Destination >build\net46</Destination >
47+ </NuGetContent >
48+ <NuGetContent Include =" build\net472\*" >
49+ <Destination >build\net472</Destination >
50+ </NuGetContent >
51+ <NuGetContent Include =" tools\*.ps1" Condition =" '$(SignAssembly)' != 'true'" >
52+ <Destination >tools\net45</Destination >
53+ </NuGetContent >
54+ <NuGetContent Include =" tools\signed\*.ps1" Condition =" '$(SignAssembly)' == 'true'" >
55+ <Destination >tools\net45</Destination >
56+ </NuGetContent >
57+ <NuGetContent Include =" tools\$(LocalRoslyn45FolderName)\*" >
58+ <Destination >tools\$(LocalRoslyn45FolderName)</Destination >
59+ </NuGetContent >
60+ <NuGetContent Include =" tools\$(LocalRoslyn46FolderName)\*" >
61+ <Destination >tools\$(LocalRoslyn46FolderName)</Destination >
62+ </NuGetContent >
63+ <NuGetContent Include =" tools\$(LocalRoslyn472FolderName)\*" >
64+ <Destination >tools\$(LocalRoslyn472FolderName)</Destination >
65+ </NuGetContent >
66+ </ItemGroup >
67+ <Import Project =" $(RepositoryRoot)Tools\NuGetProj.targets" />
68+ <Target Name =" SignPowerShellScript" Condition =" '$(SignAssembly)' == 'true' " AfterTargets =" BeforeBuild" >
69+ <ItemGroup >
70+ <OriginalScriptFiles Include =" $(MSBuildThisFileDirectory)\tools\*.ps1" />
71+ </ItemGroup >
72+ <Copy SourceFiles =" @(OriginalScriptFiles)" DestinationFolder =" $(MSBuildThisFileDirectory)\tools\signed" SkipUnchangedFiles =" true" />
73+ <ItemGroup >
74+ <ScriptFilesToSign Include =" $(MSBuildThisFileDirectory)\tools\signed\*.ps1" >
75+ <Authenticode >Microsoft400</Authenticode >
76+ </ScriptFilesToSign >
77+ </ItemGroup >
78+ <SignFiles Files =" @(ScriptFilesToSign)" Type =" $(SignType)" BinariesDirectory =" $(MSBuildThisFileDirectory)\tools\signed"
79+ IntermediatesDirectory =" $(MSBuildThisFileDirectory)\tools" ESRPSigning =" $(ESRPSigning)" UseBearerToken =" $(UseBearerToken)" />
80+ </Target >
81+ <Target Name =" AfterBuild" >
482 <PropertyGroup >
5- <AssemblyName >$(MSBuildProjectName)</AssemblyName >
6- <NuGetPackageId >$(MSBuildProjectName)</NuGetPackageId >
7- <NuSpecFile >$(MSBuildProjectName).nuspec</NuSpecFile >
8- <IsPackage >true</IsPackage >
83+ <OutDir >$(PackageOutputDir)</OutDir >
984 </PropertyGroup >
1085 <ItemGroup >
11- <NuGetContent Include =" $(AssemblyName).dll" >
12- <Source >$(AssemblyPath)</Source >
13- <Destination >lib\net45</Destination >
14- </NuGetContent >
15- <NuGetContent Include =" $(AssemblyName).xml" >
16- <Source >$(OutputPath)</Source >
17- <Destination >lib\net45</Destination >
18- </NuGetContent >
19- <NuGetContent Include =" $(AssemblyName).pdb" Condition =" '$(NuGetPackSymbols)' == 'true'" >
20- <Source >$(OutputPath)</Source >
21- <Destination >lib\net45</Destination >
22- </NuGetContent >
23- <NuGetContent Include =" DotNetCompilerPlatformTasks.dll" >
24- <Source >$(OutputPath)</Source >
25- <Destination >tasks</Destination >
26- </NuGetContent >
27- <NuGetContent Include =" System.Management.dll" >
28- <Source >$(OutputPath)</Source >
29- <Destination >tasks</Destination >
30- </NuGetContent >
31- <NuGetContentProject Include =" $(RepositoryRoot)\src\$(MSBuildProjectName)\$(MSBuildProjectName).csproj" Condition =" '$(NuGetPackSymbols)' == 'true'" />
32- <NuGetContent Include =" Content\net45\*" >
33- <Destination >content\net45</Destination >
34- </NuGetContent >
35- <NuGetContent Include =" Content\net46\*" >
36- <Destination >content\net46</Destination >
37- </NuGetContent >
38- <NuGetContent Include =" build\*" >
39- <Destination >build\net45</Destination >
40- </NuGetContent >
41- <NuGetContent Include =" build\*" >
42- <Destination >build\net46</Destination >
43- </NuGetContent >
44- <NuGetContent Include =" build\net45\*" >
45- <Destination >build\net45</Destination >
46- </NuGetContent >
47- <NuGetContent Include =" build\net46\*" >
48- <Destination >build\net46</Destination >
49- </NuGetContent >
50- <NuGetContent Include =" tools\*.ps1" Condition =" '$(SignAssembly)' != 'true'" >
51- <Destination >tools\net45</Destination >
52- </NuGetContent >
53- <NuGetContent Include =" tools\signed\*.ps1" Condition =" '$(SignAssembly)' == 'true'" >
54- <Destination >tools\net45</Destination >
55- </NuGetContent >
56- <NuGetContent Include =" tools\$(LocalRoslynFolderName)\*" >
57- <Destination >tools\$(LocalRoslynFolderName)</Destination >
58- </NuGetContent >
59- <NuGetContent Include =" tools\$(LocalLatestRoslynFolderName)\*" >
60- <Destination >tools\$(LocalLatestRoslynFolderName)</Destination >
61- </NuGetContent >
86+ <FilesToSign Include =" $(NuGetPackTargetFile)" Condition =" '$(SignAssembly)' == 'true'" >
87+ <Authenticode >NuGet</Authenticode >
88+ </FilesToSign >
6289 </ItemGroup >
63- <Import Project =" $(RepositoryRoot)Tools\NuGetProj.targets" />
64- <Target Name =" SignPowerShellScript" Condition =" '$(SignAssembly)' == 'true' " AfterTargets =" BeforeBuild" >
65- <ItemGroup >
66- <OriginalScriptFiles Include =" $(MSBuildThisFileDirectory)\tools\*.ps1" />
67- </ItemGroup >
68- <Copy SourceFiles =" @(OriginalScriptFiles)" DestinationFolder =" $(MSBuildThisFileDirectory)\tools\signed" SkipUnchangedFiles =" true" />
69- <ItemGroup >
70- <ScriptFilesToSign Include =" $(MSBuildThisFileDirectory)\tools\signed\*.ps1" >
71- <Authenticode >Microsoft400</Authenticode >
72- </ScriptFilesToSign >
73- </ItemGroup >
74- <SignFiles Files =" @(ScriptFilesToSign)" Type =" $(SignType)" BinariesDirectory =" $(MSBuildThisFileDirectory)\tools\signed"
75- IntermediatesDirectory =" $(MSBuildThisFileDirectory)\tools" ESRPSigning =" $(ESRPSigning)" UseBearerToken =" $(UseBearerToken)" />
76- </Target >
77- <Target Name =" AfterBuild" >
78- <PropertyGroup >
79- <OutDir >$(PackageOutputDir)</OutDir >
80- </PropertyGroup >
81- <ItemGroup >
82- <FilesToSign Include =" $(NuGetPackTargetFile)" Condition =" '$(SignAssembly)' == 'true'" >
83- <Authenticode >NuGet</Authenticode >
84- </FilesToSign >
85- </ItemGroup >
86- </Target >
90+ </Target >
8791</Project >
0 commit comments