Pack nupkg and vsix into packages dir

This commit is contained in:
Jacob Viau 2018-05-15 12:08:34 -07:00
Родитель 725967da7a
Коммит 17cdd75875
3 изменённых файлов: 12 добавлений и 3 удалений

Просмотреть файл

@ -40,7 +40,7 @@ before_build:
build:
project: src\SlowCheetah.sln # path to Visual Studio solution or project
verbosity: normal # MSBuild verbosity level
verbosity: normal # MSBuild verbosity level
#---------------------------------#
# test configuration #
@ -55,7 +55,7 @@ test:
#---------------------------------#
artifacts:
- path: 'bin\**\Microsoft.VisualStudio.SlowCheetah*.nupkg'
- path: 'bin\**\packages\Microsoft.VisualStudio.SlowCheetah*.nupkg'
name: Nuget Package
- path: 'bin\**\Microsoft.VisualStudio.SlowCheetah*.vsix'
- path: 'bin\**\packages\Microsoft.VisualStudio.SlowCheetah*.vsix'
name: VSIX Package

Просмотреть файл

@ -7,6 +7,7 @@
<BaseIntermediateOutputPath>$(MSBuildThisFileDirectory)..\obj\$(MSBuildProjectName)\</BaseIntermediateOutputPath>
<IntermediateOutputPath>$(BaseIntermediateOutputPath)$(Configuration)\</IntermediateOutputPath>
<OutputPath>$(BaseOutputPath)$(Configuration)\</OutputPath>
<PackageOutputPath>$(OutputPath)packages\</PackageOutputPath>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
</PropertyGroup>

Просмотреть файл

@ -86,6 +86,14 @@
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<Import Project="$(VSToolsPath)\VSSDK\Microsoft.VsSDK.targets" Condition="'$(VSToolsPath)' != ''" />
<Target Name="Pack" AfterTargets="Build">
<Copy SourceFiles="$(TargetVsixContainer)"
DestinationFolder="$(PackageOutputPath)"
UseHardlinksIfPossible="true"
SkipUnchangedFiles="true" />
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">