Restore the VSIX project with MSBuild instead of NuGet.exe (#1471)
* Restore the VSIX project with MSBuild instead of NuGet.exe * Upgrade AppVeyor image to VS Preview
This commit is contained in:
parent
c67e790b3b
commit
bf1be9fb79
|
|
@ -11,4 +11,4 @@ build_script:
|
||||||
clone_depth: 1
|
clone_depth: 1
|
||||||
test: off
|
test: off
|
||||||
deploy: off
|
deploy: off
|
||||||
os: Visual Studio 2017
|
os: Visual Studio 2017 Preview
|
||||||
|
|
|
||||||
|
|
@ -1,15 +1,10 @@
|
||||||
<Project>
|
<Project>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<PackageDependsOn Condition="'$(OS)'=='Windows_NT'">$(PackageDependsOn);GenerateVSIX</PackageDependsOn>
|
<PackageDependsOn Condition="'$(OS)'=='Windows_NT'">$(PackageDependsOn);GenerateVSIX</PackageDependsOn>
|
||||||
<NuGetCommandLineVersion>4.1.0</NuGetCommandLineVersion>
|
|
||||||
<VSIXName>Microsoft.VisualStudio.RazorExtension</VSIXName>
|
<VSIXName>Microsoft.VisualStudio.RazorExtension</VSIXName>
|
||||||
<VSIXProject>$(RepositoryRoot)tooling\$(VSIXName)\$(VSIXName).csproj</VSIXProject>
|
<VSIXProject>$(RepositoryRoot)tooling\$(VSIXName)\$(VSIXName).csproj</VSIXProject>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="NuGet.CommandLine" Version="$(NuGetCommandLineVersion)" Condition="'$(OS)'=='Windows_NT'" />
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<Target
|
<Target
|
||||||
Name="GenerateVSIX"
|
Name="GenerateVSIX"
|
||||||
DependsOnTargets="_LocateMSBuildExe;_BuildVSIX"
|
DependsOnTargets="_LocateMSBuildExe;_BuildVSIX"
|
||||||
|
|
@ -29,13 +24,6 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
</Target>
|
</Target>
|
||||||
|
|
||||||
<Target Name="_RestoreProject">
|
|
||||||
<PropertyGroup>
|
|
||||||
<NuGetExe>$([MSBuild]::EnsureTrailingSlash('$(NuGetPackageRoot)'))nuget.commandline\$(NuGetCommandLineVersion)\tools\nuget.exe</NuGetExe>
|
|
||||||
</PropertyGroup>
|
|
||||||
<Exec Command="$(NuGetExe) restore "$(VSIXProject)" -SolutionDir "$(RepositoryRoot) " -verbosity quiet" />
|
|
||||||
</Target>
|
|
||||||
|
|
||||||
<Target Name="_BuildVSIX" Condition="'$(MSBuildExePath)'!=''">
|
<Target Name="_BuildVSIX" Condition="'$(MSBuildExePath)'!=''">
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<MSBuildArtifactsDir>$(ArtifactsDir)msbuild\</MSBuildArtifactsDir>
|
<MSBuildArtifactsDir>$(ArtifactsDir)msbuild\</MSBuildArtifactsDir>
|
||||||
|
|
@ -44,7 +32,8 @@
|
||||||
<VSIXOutputPath>$(BuildDir)$(VSIXName).vsix</VSIXOutputPath>
|
<VSIXOutputPath>$(BuildDir)$(VSIXName).vsix</VSIXOutputPath>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
|
|
||||||
<CallTarget Targets="_RestoreProject" />
|
<Exec Command=""$(MSBuildExePath)" "$(VSIXProject)" /nologo /t:Restore /v:m" />
|
||||||
|
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<MSBuildArguments Include="
|
<MSBuildArguments Include="
|
||||||
$(VSIXProject);
|
$(VSIXProject);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue