Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prepare release for Chocolatey #20

Merged
merged 7 commits into from
Feb 27, 2023
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ steps:
publishWebProjects: false
zipAfterPublish: false

- script: |
choco pack pkg\vswhere\VSConfigFinder.nuspec --out "bin\${{ parameters.BuildConfiguration }}" --version "%NBGV_NuGetPackageVersion%" "Configuration=${{ parameters.BuildConfiguration }}" "CommitId=$(Build.SourceVersion)" "Tag=$(Build.BuildNumber)"
skylarnam marked this conversation as resolved.
Show resolved Hide resolved
displayName: Package
workingDirectory: $(Build.SourcesDirectory)

- task: CopyFiles@2
displayName: 'Copy build artifacts from: $(Build.SourcesDirectory)\VSConfigFinder\bin\$(BuildConfiguration)\** to $(Build.ArtifactStagingDirectory)\out'
inputs:
Expand Down
30 changes: 30 additions & 0 deletions pkg/VSConfigFinder/VSConfigFinder.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="utf-8"?>
skylarnam marked this conversation as resolved.
Show resolved Hide resolved
<package xmlns="http://schemas.microsoft.com/packaging/2010/07/nuspec.xsd">
skylarnam marked this conversation as resolved.
Show resolved Hide resolved
<metadata>
<id>VSConfigFinder</id>
<version>$Version$</version>
<title>Visual Studio Configuration Finder</title>
<authors>Microsoft</authors>
<owners>Microsoft</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<iconUrl>https://go.microsoft.com/fwlink/?linkid=839265</iconUrl>
<licenseUrl>https://github.com/Microsoft/VSConfigFinder/tree/$CommitId$/LICENSE.txt</licenseUrl>
<projectUrl>https://github.com/Microsoft/VSConfigFinder</projectUrl>
<description>Locate Visual Studio installation configuration files (.vsconfigs) downstream recursively and merge them altogether</description>
<summary>Locate Visual Studio installation configuration files (.vsconfigs) downstream recursively and merge them altogether</summary>
skylarnam marked this conversation as resolved.
Show resolved Hide resolved
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<tags>vs vs2022 visualstudio</tags>
<developmentDependency>true</developmentDependency>
<projectSourceUrl>https://github.com/Microsoft/VSConfigFinder/tree/$CommitId$</projectSourceUrl>
<packageSourceUrl>https://github.com/Microsoft/VSConfigFinder/tree/$CommitId$/pkg/VSConfigFinder</packageSourceUrl>
<docsUrl>https://github.com/microsoft/VSConfigFinder/blob/main/README.md</docsUrl>
<bugTrackerUrl>https://github.com/Microsoft/VSConfigFinder/issues</bugTrackerUrl>
<releaseNotes>https://github.com/Microsoft/VSConfigFinder/releases/tag/$Tag$</releaseNotes>
</metadata>
<files>
<file src="build\VSConfigFinder.props" target="build\"/>
skylarnam marked this conversation as resolved.
Show resolved Hide resolved
<file src="..\..\bin\$Configuration$\VSConfigFinder.exe" target="tools\"/>
skylarnam marked this conversation as resolved.
Show resolved Hide resolved
<file src="..\..\LICENSE.txt" target="tools\"/>
<file src="tools\VERIFICATION.txt" target="tools\"/>
</files>
</package>
6 changes: 6 additions & 0 deletions pkg/VSConfigFinder/build/VSConfigFinder.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<VSWhereDir>$(MSBuildThisFileDirectory)..\tools\</VSWhereDir>
skylarnam marked this conversation as resolved.
Show resolved Hide resolved
</PropertyGroup>
</Project>
5 changes: 5 additions & 0 deletions pkg/VSConfigFinder/tools/VERIFICATION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

tools\VSConfigFinder.exe is produced by us from the same repository as this package: https://github.com/Microsoft/VSConfigFinder
6 changes: 5 additions & 1 deletion vsts-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,8 @@ steps:

- template: build.yml
parameters:
BuildConfiguration: $(BuildConfiguration)
BuildConfiguration: $(BuildConfiguration)

- task: ms-vseng.MicroBuildTasks.521a94ea-9e68-468a-8167-6dcf361ea776.MicroBuildCleanup@1
displayName: Clean up
condition: succeededOrFailed()