Skip to content

Commit 71f7cff

Browse files
authored
Merge pull request #1447 from Microsoft/changesRequiredForVS2017RC3
Simplify VS2017 build and signing
2 parents fac7a5a + 54d14ab commit 71f7cff

20 files changed

+27
-206
lines changed

Build/Common.Build.VSSDK.targets

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,6 @@
170170
</ItemGroup>
171171
</Target>
172172

173-
174173
<!--
175174
Zip folders containing VSIX files. These folders must have been created
176175
by previously having built the project.
@@ -186,6 +185,12 @@
186185
<SourcePath>$(SignedBinariesPath)\%(VSIXBinaries.Filename)%(VSIXBinaries.Extension)</SourcePath>
187186
</VSIXBinaries>
188187
<VSIXSignedBinaries Include="@(VSIXBinaries)" Condition="Exists(%(VSIXBinaries.SourcePath))" />
188+
189+
<VSIXBinariesLoc Include="$(CopyVsixExtensionRoot)**\*.resources.dll" />
190+
<VSIXBinariesLoc>
191+
<SourcePath>$(SignedBinariesPath)\$([System.IO.Path]::GetFileName($([System.IO.Path]::GetDirectoryName(%(VSIXBinariesLoc.FullPath)))))\%(VSIXBinariesLoc.Filename)%(VSIXBinariesLoc.Extension)</SourcePath>
192+
</VSIXBinariesLoc>
193+
<VSIXSignedBinaries Include="@(VSIXBinariesLoc)" Condition="Exists(%(VSIXBinariesLoc.SourcePath))" />
189194
</ItemGroup>
190195

191196
<Copy SourceFiles="@(VSIXSignedBinaries->'%(SourcePath)')"

Build/Common.Build.targets

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,10 @@
146146
DestinationFolder="$(CopyOutputsToPath)Symbols" />
147147

148148
<Copy SourceFiles="@(SatelliteDllsProjectOutputGroupOutput)"
149-
DestinationFolder="$(CopyOutputsToPath)UnsignedBinaries\%(SatelliteDllsProjectOutputGroupOutput.TargetDir)"
149+
DestinationFiles="@(SatelliteDllsProjectOutputGroupOutput->'$(CopyOutputsToPath)UnsignedBinaries\%(TargetPath)')"
150150
SkipUnchangedFiles="true" />
151151

152-
<Copy SourceFiles="@(OutputBinariesToSign -> '$(OutputPath)%(filename)%(extension)')"
152+
<Copy SourceFiles="@(OutputBinariesToSign->'$(OutputPath)%(filename)%(extension)')"
153153
DestinationFolder="$(CopyOutputsToPath)UnsignedBinaries"
154154
Condition="'@(OutputBinariesToSign)' != ''"/>
155155
</Target>

Nodejs/Product/InteractiveWindow/InteractiveWindow.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,6 +297,9 @@
297297
<PropertyGroup>
298298
<CreateVsixContainer>True</CreateVsixContainer>
299299
<CopyVsixExtensionFiles>True</CopyVsixExtensionFiles>
300+
<IsProductComponent>true</IsProductComponent>
301+
<ExtensionInstallationRoot>Extensions</ExtensionInstallationRoot>
302+
<ExtensionInstallationFolder>Microsoft\NodeJsTools\Repl</ExtensionInstallationFolder>
300303
</PropertyGroup>
301304
<Import Project="$(BuildRoot)\Common\Product\ReplWindow\ReplWindow.proj" />
302305
<Import Project="..\ProjectAfter.settings" />

Nodejs/Product/InteractiveWindow/source.extension.vsixmanifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<GettingStartedGuide>http://go.microsoft.com/fwlink/?LinkId=785972</GettingStartedGuide>
88
<Icon>NodeJS.ico</Icon>
99
<PreviewImage>NodeJS_200x.png</PreviewImage>
10+
<PackageId>Microsoft.VisualStudio.NodejsTools.InteractiveWindow</PackageId>
1011
</Metadata>
1112
<!-- Version="11.0" specifies the minimum (not the maximum) version, and the
1213
Id specifications are minimums; any SKU equal or 'higher' will accept

Nodejs/Product/Nodejs/Guids.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ static class Guids {
7474

7575
public const string OfficeToolsBootstrapperCmdSetString = "{D26C976C-8EE8-4EC4-8746-F5F7702A17C5}";
7676
public static readonly Guid OfficeToolsBootstrapperCmdSet = new Guid(OfficeToolsBootstrapperCmdSetString);
77-
77+
7878
// UWP project flavor guid
7979
public const string NodejsUwpProjectFlavor = "00251F00-BA30-4CE4-96A2-B8A1085F37AA";
8080
};

Nodejs/Product/Nodejs/Nodejs.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1507,6 +1507,9 @@
15071507
<RegisterWithCodebase>true</RegisterWithCodebase>
15081508
</PropertyGroup>
15091509
<PropertyGroup>
1510+
<IsProductComponent>true</IsProductComponent>
1511+
<ExtensionInstallationRoot>Extensions</ExtensionInstallationRoot>
1512+
<ExtensionInstallationFolder>Microsoft\NodeJsTools\NodeJsTools</ExtensionInstallationFolder>
15101513
<CreateVsixContainer>True</CreateVsixContainer>
15111514
<CopyVsixExtensionFiles>True</CopyVsixExtensionFiles>
15121515
</PropertyGroup>

Nodejs/Product/Nodejs/source.extension.vsixmanifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<GettingStartedGuide>http://go.microsoft.com/fwlink/?LinkId=785972</GettingStartedGuide>
88
<Icon>NodeJS.ico</Icon>
99
<PreviewImage>NodeJS_200x.png</PreviewImage>
10+
<PackageId>Microsoft.VisualStudio.NodejsTools.NodejsTools</PackageId>
1011
</Metadata>
1112
<Installation>
1213
<InstallationTarget Version="[14.0.0,16.0)" Id="Microsoft.VisualStudio.Community" />

Nodejs/Product/Profiling/Profiling.csproj

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -225,6 +225,9 @@
225225
<RegisterWithCodebase>true</RegisterWithCodebase>
226226
</PropertyGroup>
227227
<PropertyGroup>
228+
<IsProductComponent>true</IsProductComponent>
229+
<ExtensionInstallationRoot>Extensions</ExtensionInstallationRoot>
230+
<ExtensionInstallationFolder>Microsoft\NodeJsTools\Profiling</ExtensionInstallationFolder>
228231
<CreateVsixContainer>True</CreateVsixContainer>
229232
<CopyVsixExtensionFiles>True</CopyVsixExtensionFiles>
230233
</PropertyGroup>

Nodejs/Product/Profiling/source.extension.vsixmanifest

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
<GettingStartedGuide>http://go.microsoft.com/fwlink/?LinkId=785972</GettingStartedGuide>
88
<Icon>NodeJS.ico</Icon>
99
<PreviewImage>NodeJS_200x.png</PreviewImage>
10+
<PackageId>Microsoft.VisualStudio.NodejsTools.Profiling</PackageId>
1011
</Metadata>
1112
<!-- Version="11.0" specifies the minimum (not the maximum) version, and the
1213
Id specifications are minimums; any SKU equal or 'higher' will accept

Nodejs/Setup/BuildRelease.ps1

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ $symbol_contacts = "$env:username;dinov;smortaz;gilbertw;jinglou"
166166
$vcs_contact = "ntvscore"
167167

168168
# These options are passed to all MSBuild processes
169-
$global_msbuild_options = @("/v:m", "/m", "/nologo")
169+
$global_msbuild_options = @("/v:m", "/m", "/nologo", "/flp:verbosity=detailed")
170170

171171
if ($skiptests) {
172172
$global_msbuild_options += "/p:IncludeTests=false"
@@ -234,11 +234,9 @@ function after-build($buildroot, $target) {
234234
Copy-Item -Force "$buildroot\Nodejs\Prerequisites\*.reg" $($target.destdir)
235235

236236
$setup15 = mkdir "$($target.destdir)\Setup15" -Force
237-
Copy-Item -Recurse -Force "$buildroot\BuildOutput\$($target.config)$($target.VSTarget)\Setup\*.json" $setup15
237+
Copy-Item -Recurse -Force "$buildroot\BuildOutput\$($target.config)$($target.VSTarget)\Binaries\**\*.json" $setup15
238238
Copy-Item -Recurse -Force "$buildroot\BuildOutput\$($target.config)$($target.VSTarget)\Setup\*.vsman" $setup15
239239

240-
241-
242240
if ($copytests) {
243241
Copy-Item -Recurse -Force "$buildroot\BuildOutput\$($target.config)$($target.VSTarget)\Tests" "$($target.destdir)\Tests"
244242
Copy-Item -Recurse -Force "$buildroot\Nodejs\Tests\TestData" "$($target.destdir)\Tests\TestData"

0 commit comments

Comments
 (0)