Skip to content

Commit 5c97f1c

Browse files
committed
Improve nuspec
- NuGet for MDP now performs as expected: on referenced from project the exe is included in the build with the appropriate properties and added to to VSIX package. - Update package description to include mention that the package is meant to be used by nF VS extension. - Update Azure Pipelines yaml to remove publishing to NuGet.org (no need for it as this is to be consumed only by the VS extension). Signed-off-by: José Simões <[email protected]>
1 parent 5d89dad commit 5c97f1c

File tree

3 files changed

+14
-15
lines changed

3 files changed

+14
-15
lines changed

azure-pipelines.yml

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -119,18 +119,6 @@ jobs:
119119
condition: succeeded()
120120
displayName: Push NuGet packages to MyGet
121121

122-
# push NuGet class lib package to NuGet (happens on tag builds for any branch)
123-
- task: NuGetCommand@2
124-
inputs:
125-
command: push
126-
nuGetFeedType: external
127-
allowPackageConflicts: true
128-
packagesToPush: '$(Build.ArtifactStagingDirectory)/*.nupkg'
129-
publishFeedCredentials: 'NuGet'
130-
condition: and( succeeded(), startsWith(variables['Build.SourceBranch'], 'refs/tags/v') )
131-
continueOnError: true
132-
displayName: Push NuGet packages to NuGet
133-
134122
# create or update GitHub release
135123
- task: GitHubReleasePublish@1
136124
inputs:
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
2+
<ItemGroup>
3+
<Content Include="$(MSBuildThisFileDirectory)nanoFramework.Tools.MetaDataProcessor.exe">
4+
<InstallRoot>MSBuild</InstallRoot>
5+
<VSIXSubPath>nanoFramework\v1.0\</VSIXSubPath>
6+
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
7+
<IncludeInVSIX>true</IncludeInVSIX>
8+
</Content>
9+
</ItemGroup>
10+
</Project>

source/Tools.MetaDataProcessor/package.nuspec

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@
77
<authors>nanoFramework project contributors</authors>
88
<owners>nanoFramework project contributors</owners>
99
<description>
10-
Metadata Processor tool to be used when building .NET nanoFramework applications.
10+
Metadata Processor tool to be used internally by the VS nanoFramework extension.
1111
</description>
1212
<releaseNotes>
1313
</releaseNotes>
1414
<summary>
15-
Metadata Processor tool to be used when building .NET nanoFramework applications.
15+
Metadata Processor tool to be used internally by the VS nanoFramework extension.
1616
</summary>
1717
<projectUrl>https://github.com/nanoframework/metadata-processor</projectUrl>
1818
<iconUrl>https://secure.gravatar.com/avatar/97d0e092247f0716db6d4b47b7d1d1ad</iconUrl>
@@ -24,6 +24,7 @@
2424
<tags>nanoFramework, nano Framework, NETNF, NETMF, Micro Framework, .net </tags>
2525
</metadata>
2626
<files>
27-
<file src="bin\Release\nanoFramework.Tools.MetaDataProcessor.exe" target="content" />
27+
<file src="bin\Release\nanoFramework.Tools.MetaDataProcessor.exe" target="build" />
28+
<file src="nanoFramework.Tools.MetaDataProcessor.targets" target="build" />
2829
</files>
2930
</package>

0 commit comments

Comments
 (0)