Родитель
25bb9abe43
Коммит
233004d7d2
|
@ -1,89 +1,75 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<Project ToolsVersion="$(VisualStudioVersion)" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
|
||||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
|
||||
<PropertyGroup>
|
||||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
|
||||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
|
||||
<ProjectGuid>{9B18784E-1BF2-47D1-BDD1-85B678F883F9}</ProjectGuid>
|
||||
<OutputType>Library</OutputType>
|
||||
<AppDesignerFolder>Properties</AppDesignerFolder>
|
||||
<RootNamespace>nanoFramework.Tools.MetadataProcessor.MsBuildTask</RootNamespace>
|
||||
<AssemblyName>nanoFramework.Tools.MetadataProcessor.MsBuildTask</AssemblyName>
|
||||
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
|
||||
<FileAlignment>512</FileAlignment>
|
||||
<NuGetPackageImportStamp>
|
||||
</NuGetPackageImportStamp>
|
||||
<RestorePackagesWithLockFile>true</RestorePackagesWithLockFile>
|
||||
<Deterministic>true</Deterministic>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<ContinuousIntegrationBuild Condition="'$(TF_BUILD)' == 'true'">True</ContinuousIntegrationBuild>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
|
||||
<DebugSymbols>true</DebugSymbols>
|
||||
<DebugType>full</DebugType>
|
||||
<Optimize>false</Optimize>
|
||||
<OutputPath>bin\Debug\</OutputPath>
|
||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<DebugType>portable</DebugType>
|
||||
<Optimize>true</Optimize>
|
||||
<OutputPath>bin\Release\</OutputPath>
|
||||
<DefineConstants>TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
</PropertyGroup>
|
||||
<ItemGroup>
|
||||
<Reference Include="Microsoft.Build.Framework" />
|
||||
<Reference Include="Microsoft.Build.Utilities.v4.0" />
|
||||
<Reference Include="System" />
|
||||
<Reference Include="System.Core" />
|
||||
<Reference Include="System.Xml.Linq" />
|
||||
<Reference Include="System.Data.DataSetExtensions" />
|
||||
<Reference Include="Microsoft.CSharp" />
|
||||
<Reference Include="System.Data" />
|
||||
<Reference Include="System.Net.Http" />
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="TasksConstants.cs" />
|
||||
<Compile Include="MetaDataProcessorTask.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Utilities\DebuggerHelper.cs" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MetadataProcessor.Core\MetadataProcessor.Core.csproj">
|
||||
<Project>{e32f7d15-2499-440c-8026-4d5ee1c5ec3a}</Project>
|
||||
<Name>MetadataProcessor.Core</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<None Include="packages.lock.json" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub">
|
||||
<Version>1.0.0</Version>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Mono.Cecil">
|
||||
<Version>0.11.4</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="mustache-sharp">
|
||||
<Version>1.0.0</Version>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Nerdbank.GitVersioning">
|
||||
<Version>3.4.220</Version>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
</PackageReference>
|
||||
</ItemGroup>
|
||||
<Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
|
||||
<PropertyGroup>
|
||||
<!-- Need to set this environment variable to use the DLL from the build -->
|
||||
<!-- Make sure to remove the environment variable after testing -->
|
||||
<!-- <PreBuildEvent>SETX NF_MDP_MSBUILDTASK_PATH $(TargetDir)</PreBuildEvent> -->
|
||||
</PropertyGroup>
|
||||
</Project>
|
||||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
|
||||
<PropertyGroup>
|
||||
<OutputType>Library</OutputType>
|
||||
|
||||
<MicrosoftBuildFrameworkVersion>15.4.8</MicrosoftBuildFrameworkVersion>
|
||||
|
||||
<TargetFrameworks>net6.0;net472</TargetFrameworks>
|
||||
<PackageId>nanoFramework.Tools.MetadataProcessor.MsBuildTask</PackageId>
|
||||
<AssemblyName>nanoFramework.Tools.MetadataProcessor.MsBuildTask</AssemblyName>
|
||||
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
|
||||
<Authors>.NET nanoFramework project contributors</Authors>
|
||||
<Company>.NET nanoFramework</Company>
|
||||
<Description>This package includes the Metadata Processor build task required to build a .NET nanoFramework project with msbuild and dotnet tool.</Description>
|
||||
<PackageProjectUrl>https://github.com/nanoframework/metadata-processor</PackageProjectUrl>
|
||||
<RepositoryUrl>https://github.com/nanoframework/metadata-processor</RepositoryUrl>
|
||||
<RepositoryType>git</RepositoryType>
|
||||
<PackageIcon>nf-logo.png</PackageIcon>
|
||||
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
|
||||
<Deterministic>true</Deterministic>
|
||||
<EmbedUntrackedSources>true</EmbedUntrackedSources>
|
||||
<ContinuousIntegrationBuild Condition="'$(TF_BUILD)' == 'true'">True</ContinuousIntegrationBuild>
|
||||
<PublishRepositoryUrl>true</PublishRepositoryUrl>
|
||||
<IncludeSymbols>true</IncludeSymbols>
|
||||
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
|
||||
</PropertyGroup>
|
||||
|
||||
<PropertyGroup>
|
||||
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
|
||||
<EnableDefaultItems>false</EnableDefaultItems>
|
||||
<GenerateDependencyFile>false</GenerateDependencyFile>
|
||||
<IncludeBuildOutput>true</IncludeBuildOutput>
|
||||
|
||||
<NoPackageAnalysis>true</NoPackageAnalysis>
|
||||
<!-- MSBuild Task DLLs need to be versioned with every build -->
|
||||
<AutoGenerateAssemblyVersion>true</AutoGenerateAssemblyVersion>
|
||||
</PropertyGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<None Include="..\assets\nf-logo.png">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath></PackagePath>
|
||||
</None>
|
||||
<None Include="..\LICENSE.md">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath></PackagePath>
|
||||
</None>
|
||||
<None Include="nanoFramework.Tools.MetadataProcessor.MsBuildTask.targets">
|
||||
<Pack>True</Pack>
|
||||
<PackagePath>build</PackagePath>
|
||||
</None>
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<Compile Include="*.cs" />
|
||||
<Compile Include="Utilities/*.cs" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Nerdbank.GitVersioning" Version="3.4.255">
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</PackageReference>
|
||||
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1" PrivateAssets="All"/>
|
||||
<PackageReference Include="Microsoft.Build.Framework" Version="$(MicrosoftBuildFrameworkVersion)" ExcludeAssets="Runtime" />
|
||||
<PackageReference Include="Microsoft.Build.Utilities.Core" Version="$(MicrosoftBuildFrameworkVersion)" ExcludeAssets="Runtime" />
|
||||
<PackageReference Include="Mono.Cecil" Version="0.11.4" />
|
||||
<PackageReference Include="mustache-sharp" Version="1.0.0" />
|
||||
</ItemGroup>
|
||||
|
||||
<ItemGroup>
|
||||
<ProjectReference Include="..\MetadataProcessor.Core\MetadataProcessor.Core.csproj" />
|
||||
</ItemGroup>
|
||||
|
||||
</Project>
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
using System.Reflection;
|
||||
using System.Runtime.CompilerServices;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
// General Information about an assembly is controlled through the following
|
||||
// set of attributes. Change these attribute values to modify the information
|
||||
// associated with an assembly.
|
||||
[assembly: AssemblyTitle(".NET nanoFramework Metadata processor MSBuild Task library")]
|
||||
[assembly: AssemblyDescription("")]
|
||||
[assembly: AssemblyConfiguration("")]
|
||||
[assembly: AssemblyCompany("nanoFramework")]
|
||||
[assembly: AssemblyProduct(".NET nanoFramework Metadata processor MSBuild Task library")]
|
||||
[assembly: AssemblyCopyright("Copyright © 2020 nanoFramework contributors")]
|
||||
[assembly: AssemblyTrademark("")]
|
||||
[assembly: AssemblyCulture("")]
|
||||
|
||||
// Setting ComVisible to false makes the types in this assembly not visible
|
||||
// to COM components. If you need to access a type in this assembly from
|
||||
// COM, set the ComVisible attribute to true on that type.
|
||||
[assembly: ComVisible(false)]
|
||||
|
|
@ -1,35 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<package >
|
||||
<metadata>
|
||||
<id>nanoFramework.Tools.MetadataProcessor.MsBuildTask</id>
|
||||
<title>nanoFramework.Tools.MetadataProcessor.MsBuildTask</title>
|
||||
<version>$version$</version>
|
||||
<authors>nanoFramework project contributors</authors>
|
||||
<owners>nanoframework,dotnetfoundation</owners>
|
||||
<description>Metadata Processor MSBuild task to be used by the Visual Studio .NET nanoFramework extension.</description>
|
||||
<releaseNotes>
|
||||
</releaseNotes>
|
||||
<readme>docs\README.md</readme>
|
||||
<projectUrl>https://github.com/nanoframework/metadata-processor</projectUrl>
|
||||
<icon>images\nf-logo.png</icon>
|
||||
<license type="file">LICENSE.md</license>
|
||||
<requireLicenseAcceptance>false</requireLicenseAcceptance>
|
||||
<repository type="git" url="https://github.com/nanoframework/metadata-processor" commit="$commit$" />
|
||||
<copyright>Copyright (c) .NET Foundation and Contributors</copyright>
|
||||
<references></references>
|
||||
<tags>nanoFramework, nano Framework, NETNF, NETMF, Micro Framework, .net</tags>
|
||||
<dependencies>
|
||||
<dependency id="Mono.Cecil" version="0.11.4" />
|
||||
<dependency id="mustache-sharp" version="1.0.0" />
|
||||
</dependencies>
|
||||
</metadata>
|
||||
<files>
|
||||
<file src="bin\Release\nanoFramework.Tools.MetadataProcessor.Core.dll" target="lib/net472" />
|
||||
<file src="bin\Release\nanoFramework.Tools.MetadataProcessor.MsBuildTask.dll" target="lib/net472" />
|
||||
<file src="nanoFramework.Tools.MetadataProcessor.MsBuildTask.targets" target="build" />
|
||||
|
||||
<file src="..\assets\nf-logo.png" target="images\" />
|
||||
<file src="..\LICENSE.md" target="" />
|
||||
<file src="..\README.md" target="docs\" />
|
||||
</files>
|
||||
</package>
|
|
@ -1,55 +0,0 @@
|
|||
{
|
||||
"version": 1,
|
||||
"dependencies": {
|
||||
".NETFramework,Version=v4.7.2": {
|
||||
"Microsoft.SourceLink.GitHub": {
|
||||
"type": "Direct",
|
||||
"requested": "[1.0.0, )",
|
||||
"resolved": "1.0.0",
|
||||
"contentHash": "aZyGyGg2nFSxix+xMkPmlmZSsnGQ3w+mIG23LTxJZHN+GPwTQ5FpPgDo7RMOq+Kcf5D4hFWfXkGhoGstawX13Q==",
|
||||
"dependencies": {
|
||||
"Microsoft.Build.Tasks.Git": "1.0.0",
|
||||
"Microsoft.SourceLink.Common": "1.0.0"
|
||||
}
|
||||
},
|
||||
"Mono.Cecil": {
|
||||
"type": "Direct",
|
||||
"requested": "[0.11.4, )",
|
||||
"resolved": "0.11.4",
|
||||
"contentHash": "IC1h5g0NeJGHIUgzM1P82ld57knhP0IcQfrYITDPXlNpMYGUrsG5TxuaWTjaeqDNQMBDNZkB8L0rBnwsY6JHuQ=="
|
||||
},
|
||||
"mustache-sharp": {
|
||||
"type": "Direct",
|
||||
"requested": "[1.0.0, )",
|
||||
"resolved": "1.0.0",
|
||||
"contentHash": "+RTxWGLH5p0ibl7XDbb8pOznAdqwxH3zic40eL1gq5xl8jZt3CFc04KSLLFWM3PgvlTzfbzDJfjzF7rCglqGAA=="
|
||||
},
|
||||
"Nerdbank.GitVersioning": {
|
||||
"type": "Direct",
|
||||
"requested": "[3.4.220, )",
|
||||
"resolved": "3.4.220",
|
||||
"contentHash": "a4A8qKgM1OLmAEnP30qlA8AhVAutKfJtQbfhwXIeUE5QhWKlnGe6cThJik9aKAzZvhcdmUIaN4O0q+JSI6BU4A=="
|
||||
},
|
||||
"Microsoft.Build.Tasks.Git": {
|
||||
"type": "Transitive",
|
||||
"resolved": "1.0.0",
|
||||
"contentHash": "z2fpmmt+1Jfl+ZnBki9nSP08S1/tbEOxFdsK1rSR+LBehIJz1Xv9/6qOOoGNqlwnAGGVGis1Oj6S8Kt9COEYlQ=="
|
||||
},
|
||||
"Microsoft.SourceLink.Common": {
|
||||
"type": "Transitive",
|
||||
"resolved": "1.0.0",
|
||||
"contentHash": "G8DuQY8/DK5NN+3jm5wcMcd9QYD90UV7MiLmdljSJixi3U/vNaeBKmmXUqI4DJCOeWizIUEh4ALhSt58mR+5eg=="
|
||||
},
|
||||
"metadataprocessor.core": {
|
||||
"type": "Project",
|
||||
"dependencies": {
|
||||
"Mono.Cecil": "0.11.4",
|
||||
"mustache-sharp": "1.0.0"
|
||||
}
|
||||
}
|
||||
},
|
||||
".NETFramework,Version=v4.7.2/win": {},
|
||||
".NETFramework,Version=v4.7.2/win-x64": {},
|
||||
".NETFramework,Version=v4.7.2/win-x86": {}
|
||||
}
|
||||
}
|
|
@ -91,10 +91,6 @@
|
|||
<Project>{e32f7d15-2499-440c-8026-4d5ee1c5ec3a}</Project>
|
||||
<Name>MetadataProcessor.Core</Name>
|
||||
</ProjectReference>
|
||||
<ProjectReference Include="TestNFApp\TestNFApp.nfproj">
|
||||
<Project>{9e5e0766-701d-4266-9eba-7b3e4338ed21}</Project>
|
||||
<Name>TestNFApp</Name>
|
||||
</ProjectReference>
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<PackageReference Include="Mono.Cecil">
|
||||
|
|
|
@ -1,10 +1,19 @@
|
|||
trigger:
|
||||
branches:
|
||||
include: [main, develop, "release-*" ]
|
||||
include:
|
||||
- main
|
||||
- develop
|
||||
- release-*
|
||||
paths:
|
||||
exclude: [README.md, LICENSE.md, NuGet.Config, .github_changelog_generator, .gitignore]
|
||||
exclude:
|
||||
- README.md
|
||||
- LICENSE.md
|
||||
- NuGet.Config
|
||||
- github_changelog_generator
|
||||
- .gitignore
|
||||
tags:
|
||||
include: ["v*"]
|
||||
include:
|
||||
- v*
|
||||
|
||||
# PR always trigger build
|
||||
|
||||
|
@ -21,7 +30,7 @@ jobs:
|
|||
##############################
|
||||
- job: Get_Build_Flags
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
vmImage: 'windows-2022'
|
||||
|
||||
steps:
|
||||
- checkout: self
|
||||
|
@ -78,7 +87,6 @@ jobs:
|
|||
displayName: Check build labels
|
||||
|
||||
##############################
|
||||
|
||||
# build MDP
|
||||
- job: Build_MDP
|
||||
condition: eq(variables['UPDATE_DEPENDENTS'], 'false')
|
||||
|
@ -87,7 +95,7 @@ jobs:
|
|||
- Get_Build_Flags
|
||||
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
vmImage: 'windows-2022'
|
||||
|
||||
variables:
|
||||
DOTNET_NOLOGO: true
|
||||
|
@ -121,12 +129,6 @@ jobs:
|
|||
condition: ne( variables['StartReleaseCandidate'], true )
|
||||
displayName: Install nanoFramework MSBuild components
|
||||
|
||||
- task: NuGetToolInstaller@1
|
||||
condition: succeeded()
|
||||
displayName: 'Install specific version of NuGet'
|
||||
inputs:
|
||||
versionSpec: '5.9.0'
|
||||
|
||||
- task: NuGetCommand@2
|
||||
displayName: NuGet restore
|
||||
inputs:
|
||||
|
@ -134,12 +136,12 @@ jobs:
|
|||
feedsToUse: config
|
||||
nugetConfigPath: 'NuGet.config'
|
||||
|
||||
- task: NuGetCommand@2
|
||||
displayName: NuGet restore mscorlib
|
||||
inputs:
|
||||
restoreSolution: 'MetadataProcessor.Tests\mscorlib\nanoFramework.CoreLibrary.sln'
|
||||
feedsToUse: config
|
||||
nugetConfigPath: 'NuGet.config'
|
||||
# - task: NuGetCommand@2
|
||||
# displayName: NuGet restore mscorlib
|
||||
# inputs:
|
||||
# restoreSolution: 'MetadataProcessor.Tests\mscorlib\nanoFramework.CoreLibrary.sln'
|
||||
# feedsToUse: config
|
||||
# nugetConfigPath: 'NuGet.config'
|
||||
|
||||
- task: VSBuild@1
|
||||
inputs:
|
||||
|
@ -148,43 +150,39 @@ jobs:
|
|||
msbuildArgs: '/p:PublicRelease=true'
|
||||
configuration: '$(buildConfiguration)'
|
||||
|
||||
- script: nbgv cloud -a -c
|
||||
condition: succeeded()
|
||||
displayName: Set Could Version
|
||||
# - task: PowerShell@2
|
||||
# displayName: Remove nano Test Adapter
|
||||
# inputs:
|
||||
# targetType: 'inline'
|
||||
# script: |
|
||||
# Get-ChildItem -Path $env:System_DefaultWorkingDirectory -Include "nanoFramework.TestAdapter.dll" -Recurse |
|
||||
# Foreach-object {
|
||||
# Remove-Item -Path $_.fullname
|
||||
# }
|
||||
|
||||
- task: PowerShell@2
|
||||
displayName: Remove nano Test Adapter
|
||||
inputs:
|
||||
targetType: 'inline'
|
||||
script: |
|
||||
Get-ChildItem -Path $env:System_DefaultWorkingDirectory -Include "nanoFramework.TestAdapter.dll" -Recurse |
|
||||
Foreach-object {
|
||||
Remove-Item -Path $_.fullname
|
||||
}
|
||||
# - task: VisualStudioTestPlatformInstaller@1
|
||||
# condition: succeeded()
|
||||
# displayName: 'Visual Studio Test Platform Installer'
|
||||
# inputs:
|
||||
# versionSelector: latestStable
|
||||
|
||||
- task: VisualStudioTestPlatformInstaller@1
|
||||
condition: succeeded()
|
||||
displayName: 'Visual Studio Test Platform Installer'
|
||||
inputs:
|
||||
versionSelector: latestStable
|
||||
|
||||
- task: VSTest@2
|
||||
condition: succeeded()
|
||||
displayName: 'Running tests'
|
||||
inputs:
|
||||
testSelector: 'testAssemblies'
|
||||
pathtoCustomTestAdapters:
|
||||
testAssemblyVer2: |
|
||||
**\*Tests*.dll
|
||||
!**\*TestAdapter*.dll
|
||||
!**\*TestFramework*.dll
|
||||
!**\obj\**
|
||||
searchFolder: '$(System.DefaultWorkingDirectory)'
|
||||
platform: '$(BuildPlatform)'
|
||||
configuration: '$(BuildConfiguration)'
|
||||
diagnosticsEnabled: true
|
||||
vsTestVersion: toolsInstaller
|
||||
codeCoverageEnabled: true
|
||||
# - task: VSTest@2
|
||||
# condition: succeeded()
|
||||
# displayName: 'Running tests'
|
||||
# inputs:
|
||||
# testSelector: 'testAssemblies'
|
||||
# pathtoCustomTestAdapters:
|
||||
# testAssemblyVer2: |
|
||||
# **\*Tests*.dll
|
||||
# !**\*TestAdapter*.dll
|
||||
# !**\*TestFramework*.dll
|
||||
# !**\obj\**
|
||||
# searchFolder: '$(System.DefaultWorkingDirectory)'
|
||||
# platform: '$(BuildPlatform)'
|
||||
# configuration: '$(BuildConfiguration)'
|
||||
# diagnosticsEnabled: true
|
||||
# vsTestVersion: toolsInstaller
|
||||
# codeCoverageEnabled: true
|
||||
|
||||
- task: CopyFiles@1
|
||||
condition: succeeded()
|
||||
|
@ -197,13 +195,6 @@ jobs:
|
|||
TargetFolder: '$(Build.ArtifactStagingDirectory)'
|
||||
flattenFolders: true
|
||||
|
||||
- task: NuGetCommand@2
|
||||
condition: succeeded()
|
||||
displayName: Pack NuGet with MDP MSBuild task
|
||||
inputs:
|
||||
command: 'custom'
|
||||
arguments: 'pack MetadataProcessor.MsBuildTask\package.nuspec -Version $(NBGV_NuGetPackageVersion) -properties commit="$(Build.SourceVersion)"'
|
||||
|
||||
- task: CopyFiles@1
|
||||
condition: succeeded()
|
||||
displayName: Collecting NuGet package artifact
|
||||
|
@ -260,7 +251,12 @@ jobs:
|
|||
|
||||
# create or update GitHub release
|
||||
- task: GithubRelease@1
|
||||
condition: and( succeeded(), eq(variables['System.PullRequest.PullRequestId'], ''), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
|
||||
condition: >-
|
||||
and(
|
||||
succeeded(),
|
||||
eq(variables['System.PullRequest.PullRequestId'], ''),
|
||||
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
|
||||
)
|
||||
displayName: Create/Update GitHub release
|
||||
inputs:
|
||||
gitHubConnection: 'github.com_nano-$(System.TeamProject)'
|
||||
|
@ -276,14 +272,21 @@ jobs:
|
|||
|
||||
##############################
|
||||
- job: Update_Dependents
|
||||
condition: and( or( eq(dependencies.Get_Build_Flags.outputs['GetPRLabels.RUN_UPDATE_DEPENDENTS'], 'true'), eq(variables['UPDATE_DEPENDENTS'], 'true') ), not( startsWith(variables['Build.SourceBranch'], 'refs/tags/v') ) )
|
||||
condition: >-
|
||||
and(
|
||||
or(
|
||||
eq(dependencies.Get_Build_Flags.outputs['GetPRLabels.RUN_UPDATE_DEPENDENTS'], 'true'),
|
||||
eq(variables['UPDATE_DEPENDENTS'], 'true')
|
||||
),
|
||||
not(startsWith(variables['Build.SourceBranch'], 'refs/tags/v'))
|
||||
)
|
||||
|
||||
dependsOn:
|
||||
- Get_Build_Flags
|
||||
- Build_MDP
|
||||
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
vmImage: 'windows-2022'
|
||||
|
||||
variables:
|
||||
DOTNET_NOLOGO: true
|
||||
|
@ -318,7 +321,7 @@ jobs:
|
|||
condition: failed('Build_MDP')
|
||||
|
||||
pool:
|
||||
vmImage: 'windows-2019'
|
||||
vmImage: 'windows-2022'
|
||||
|
||||
steps:
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
|
||||
Microsoft Visual Studio Solution File, Format Version 12.00
|
||||
# Visual Studio Version 16
|
||||
VisualStudioVersion = 16.0.30002.166
|
||||
# Visual Studio Version 17
|
||||
VisualStudioVersion = 17.0.32014.148
|
||||
MinimumVisualStudioVersion = 10.0.40219.1
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MetadataProcessor.Core", "MetadataProcessor.Core\MetadataProcessor.Core.csproj", "{E32F7D15-2499-440C-8026-4D5EE1C5EC3A}"
|
||||
EndProject
|
||||
|
@ -18,19 +18,10 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MetadataProcessor.Tests", "
|
|||
{9B18784E-1BF2-47D1-BDD1-85B678F883F9} = {9B18784E-1BF2-47D1-BDD1-85B678F883F9}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "TestNFApp", "MetadataProcessor.Tests\TestNFApp\TestNFApp.nfproj", "{9E5E0766-701D-4266-9EBA-7B3E4338ED21}"
|
||||
EndProject
|
||||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "MetadataProcessor.MsBuildTask", "MetadataProcessor.MsBuildTask\MetadataProcessor.MsBuildTask.csproj", "{9B18784E-1BF2-47D1-BDD1-85B678F883F9}"
|
||||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "MetadataProcessor.MsBuildTask", "MetadataProcessor.MsBuildTask\MetadataProcessor.MsBuildTask.csproj", "{9B18784E-1BF2-47D1-BDD1-85B678F883F9}"
|
||||
EndProject
|
||||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "TestProjects", "TestProjects", "{65BB4122-2D2E-4CC2-9C28-42845B1A496B}"
|
||||
EndProject
|
||||
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "CoreLibrary", "MetadataProcessor.Tests\mscorlib\nanoFramework.CoreLibrary\CoreLibrary.nfproj", "{BE7B95D5-087C-45F8-8197-4B438BEDFE11}"
|
||||
ProjectSection(ProjectDependencies) = postProject
|
||||
{9B18784E-1BF2-47D1-BDD1-85B678F883F9} = {9B18784E-1BF2-47D1-BDD1-85B678F883F9}
|
||||
EndProjectSection
|
||||
EndProject
|
||||
Project("{11A8DD76-328B-46DF-9F39-F559912D0360}") = "TestNFClassLibrary", "MetadataProcessor.Tests\TestNFClassLibrary\TestNFClassLibrary\TestNFClassLibrary.nfproj", "{4DFB8601-824B-4E4C-8D95-E292CB53760E}"
|
||||
EndProject
|
||||
Global
|
||||
GlobalSection(SolutionConfigurationPlatforms) = preSolution
|
||||
Debug|Any CPU = Debug|Any CPU
|
||||
|
@ -46,40 +37,15 @@ Global
|
|||
{A9E02E14-7321-4B12-8AB5-9A0408ED8FD0}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{A9E02E14-7321-4B12-8AB5-9A0408ED8FD0}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{C57A07D9-3293-46ED-9EB7-E05B7965B016}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{C57A07D9-3293-46ED-9EB7-E05B7965B016}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{C57A07D9-3293-46ED-9EB7-E05B7965B016}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{C57A07D9-3293-46ED-9EB7-E05B7965B016}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9E5E0766-701D-4266-9EBA-7B3E4338ED21}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9E5E0766-701D-4266-9EBA-7B3E4338ED21}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9E5E0766-701D-4266-9EBA-7B3E4338ED21}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{9E5E0766-701D-4266-9EBA-7B3E4338ED21}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9E5E0766-701D-4266-9EBA-7B3E4338ED21}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{9E5E0766-701D-4266-9EBA-7B3E4338ED21}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{9B18784E-1BF2-47D1-BDD1-85B678F883F9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{9B18784E-1BF2-47D1-BDD1-85B678F883F9}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{9B18784E-1BF2-47D1-BDD1-85B678F883F9}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{9B18784E-1BF2-47D1-BDD1-85B678F883F9}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BE7B95D5-087C-45F8-8197-4B438BEDFE11}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{BE7B95D5-087C-45F8-8197-4B438BEDFE11}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{BE7B95D5-087C-45F8-8197-4B438BEDFE11}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{BE7B95D5-087C-45F8-8197-4B438BEDFE11}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{BE7B95D5-087C-45F8-8197-4B438BEDFE11}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{BE7B95D5-087C-45F8-8197-4B438BEDFE11}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
{4DFB8601-824B-4E4C-8D95-E292CB53760E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
|
||||
{4DFB8601-824B-4E4C-8D95-E292CB53760E}.Debug|Any CPU.Build.0 = Debug|Any CPU
|
||||
{4DFB8601-824B-4E4C-8D95-E292CB53760E}.Debug|Any CPU.Deploy.0 = Debug|Any CPU
|
||||
{4DFB8601-824B-4E4C-8D95-E292CB53760E}.Release|Any CPU.ActiveCfg = Release|Any CPU
|
||||
{4DFB8601-824B-4E4C-8D95-E292CB53760E}.Release|Any CPU.Build.0 = Release|Any CPU
|
||||
{4DFB8601-824B-4E4C-8D95-E292CB53760E}.Release|Any CPU.Deploy.0 = Release|Any CPU
|
||||
EndGlobalSection
|
||||
GlobalSection(SolutionProperties) = preSolution
|
||||
HideSolutionNode = FALSE
|
||||
EndGlobalSection
|
||||
GlobalSection(NestedProjects) = preSolution
|
||||
{9E5E0766-701D-4266-9EBA-7B3E4338ED21} = {65BB4122-2D2E-4CC2-9C28-42845B1A496B}
|
||||
{BE7B95D5-087C-45F8-8197-4B438BEDFE11} = {65BB4122-2D2E-4CC2-9C28-42845B1A496B}
|
||||
{4DFB8601-824B-4E4C-8D95-E292CB53760E} = {65BB4122-2D2E-4CC2-9C28-42845B1A496B}
|
||||
EndGlobalSection
|
||||
GlobalSection(ExtensibilityGlobals) = postSolution
|
||||
SolutionGuid = {31412224-888D-40FC-AE73-2FF5468E59CD}
|
||||
EndGlobalSection
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"$schema": "https://raw.githubusercontent.com/AArnott/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
|
||||
"version": "2.35",
|
||||
"version": "3.0",
|
||||
"release": {
|
||||
"branchName" : "release-v{version}",
|
||||
"versionIncrement" : "build",
|
||||
|
@ -13,9 +13,7 @@
|
|||
"semVer": 2
|
||||
},
|
||||
"publicReleaseRefSpec": [
|
||||
"^refs/heads/main$",
|
||||
"^refs/heads/develop$",
|
||||
"^refs/heads/v\\d+(?:\\.\\d+)?$"
|
||||
"^"
|
||||
],
|
||||
"cloudBuild": {
|
||||
"setAllVariables": true,
|
||||
|
|
Загрузка…
Ссылка в новой задаче