Skip to content

Commit

Permalink
Use a static verison of nuget.build.tasks.pack, use licenseexpression (
Browse files Browse the repository at this point in the history
  • Loading branch information
nkolev92 committed Jan 7, 2019
1 parent 88d57b6 commit ea26726
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 11 deletions.
1 change: 1 addition & 0 deletions .nuget/packages.config
Original file line number Diff line number Diff line change
Expand Up @@ -18,5 +18,6 @@
<package id="MicroBuild.Core" version="0.2.0" targetFramework="net45" />
<package id="NuGetValidator" version="2.0.1" targetFramework="net461" />
<package id="XunitXml.TestLogger" version="2.0.0" />
<package id="NuGet.Build.Tasks.Pack" version="4.9.2" />
<package id="Microsoft.DotNet.Build.Tasks.Feed" version="2.1.0-prerelease-02419-02" /> <!-- For the .NET Core orchestrated build.-->
</packages>
1 change: 1 addition & 0 deletions build/common.project.props
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
<XunitConsoleExePath>$(SolutionPackagesFolder)xunit.runner.console.2.3.1\tools\net452\xunit.console.x86.exe</XunitConsoleExePath>
<ILMergeExePath>$(SolutionPackagesFolder)ILMerge.3.0.21\tools\net452\ILMerge.exe</ILMergeExePath>
<XunitXmlLoggerDirectory>$(SolutionPackagesFolder)XunitXml.TestLogger.2.0.0\build\_common</XunitXmlLoggerDirectory>
<NuGetBuildTasksPackTargets>$(SolutionPackagesFolder)NuGet.Build.Tasks.Pack.4.9.2\build\NuGet.Build.Tasks.Pack.targets</NuGetBuildTasksPackTargets>
<EnlistmentRoot>$(RepositoryRootDirectory)</EnlistmentRoot>
<EnlistmentRootSrc>$(RepositoryRootDirectory)src</EnlistmentRootSrc>
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">$(RepositoryRootDirectory)</SolutionDir>
Expand Down
4 changes: 4 additions & 0 deletions build/common.targets
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@
<DocumentationFile Condition=" '$(DocumentationFile)' == '' AND '$(GenerateDocumentationFile)' == 'true' AND '$(IsNetCoreProject)' != 'true' ">$(OutputPath)\$(AssemblyName).xml</DocumentationFile>
</PropertyGroup>

<ImportGroup Condition=" '$(PackProject)' == 'true' ">
<Import Project="$(NuGetBuildTasksPackTargets)" />
</ImportGroup>

<!-- Test Projects -->
<ImportGroup Condition=" '$(TestProject)' == 'true' ">
<Import Project="test.targets" />
Expand Down
2 changes: 1 addition & 1 deletion build/config.props
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
<PropertyGroup>
<Authors>Microsoft</Authors>
<PackageProjectUrl>https://aka.ms/nugetprj</PackageProjectUrl>
<PackageLicenseUrl>https://aka.ms/nugetlicense</PackageLicenseUrl>
<PackageLicenseExpression>Apache-2.0</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>https://github.com/NuGet/NuGet.Client</RepositoryUrl>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -536,9 +536,6 @@
<SubType>Designer</SubType>
</Content>
</ItemGroup>
<ItemGroup>
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="4.8.0" PrivateAssets="all" />
</ItemGroup>
<PropertyGroup>
<IncludeContentInPack>false</IncludeContentInPack>
</PropertyGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,6 @@
<PackageReference Include="VSLangProj110" Version="11.0.61030" />
<PackageReference Include="VSLangProj2" Version="7.0.5000" />
<PackageReference Include="VSLangProj157" Version="15.7.0" />
<PackageReference Include="NuGet.Build.Tasks.Pack" Version="4.8.0" PrivateAssets="all" />
</ItemGroup>
<Import Project="$(BuildCommonDirectory)common.targets" />
<Import Project="$(BuildCommonDirectory)fixinterop.targets" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,9 @@
<PackProject>true</PackProject>
<IncludeInVsix>true</IncludeInVsix>
<authors>Microsoft</authors>
<PackageLicenseUrl>https://aka.ms/nugetlicense</PackageLicenseUrl>
<PackageProjectUrl>https://aka.ms/nugetprj</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<AssemblyDescription>APIs for invoking NuGet Restore Manager in Visual Studio.</AssemblyDescription>
<Description>APIs for invoking NuGet Restore Manager in Visual Studio.</Description>
<copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>
</PropertyGroup>

<ItemGroup>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,7 @@
<Guid>228F7591-2777-47D7-B81D-FEADFC71CEB5</Guid>
<ComVisible>false</ComVisible>
<authors>Microsoft</authors>
<PackageLicenseUrl>https://aka.ms/nugetlicense</PackageLicenseUrl>
<PackageProjectUrl>https://aka.ms/nugetprj</PackageProjectUrl>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<copyright>&#169; Microsoft Corporation. All rights reserved.</copyright>
</PropertyGroup>

<ItemGroup>
Expand Down

0 comments on commit ea26726

Please sign in to comment.