|
2 | 2 |
|
3 | 3 | <PropertyGroup>
|
4 | 4 | <TargetFramework>net8.0</TargetFramework>
|
5 |
| - <NuspecFile>$(MSBuildThisFileDirectory)Microsoft.Build.Sql.nuspec</NuspecFile> |
6 |
| - <PackageType>MSBuildSDK</PackageType> |
7 |
| - <PackageReadmeFile>README.md</PackageReadmeFile> |
8 |
| - <PackageReleaseNotes>https://github.com/microsoft/DacFx/tree/main/release-notes/Microsoft.Build.Sql</PackageReleaseNotes> |
9 | 5 | <IncludeBuildOutput>false</IncludeBuildOutput>
|
10 | 6 | <GeneratePackageOnBuild>true</GeneratePackageOnBuild>
|
| 7 | + <SdkIntermediateOutputPath>$(BaseIntermediateOutputPath)\$(Configuration)\$(MSBuildThisFileName)</SdkIntermediateOutputPath> |
| 8 | + <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> |
| 9 | + <NoWarn>$(NoWarn);NU5128</NoWarn> |
11 | 10 |
|
12 | 11 | <!-- Path where all the DLLs build depends on will be copied to -->
|
13 | 12 | <BuildBinariesPath>$(MSBuildThisFileDirectory)\tools\net8.0\</BuildBinariesPath>
|
| 13 | + |
| 14 | + <!-- NuGet Package Properties --> |
| 15 | + <Authors>Microsoft</Authors> |
| 16 | + <Copyright>© Microsoft Corporation. All rights reserved.</Copyright> |
| 17 | + <Description>This package contains the SDK for building SQL Database Projects (.sqlproj) in .NET.</Description> |
| 18 | + <Owners>Microsoft</Owners> |
| 19 | + <PackageIcon>images\nuspecicon.png</PackageIcon> |
| 20 | + <PackageLicenseFile>LICENSE.txt</PackageLicenseFile> |
| 21 | + <PackageProjectUrl>https://github.com/microsoft/DacFx</PackageProjectUrl> |
| 22 | + <PackageReadmeFile>README.md</PackageReadmeFile> |
| 23 | + <PackageReleaseNotes>https://github.com/microsoft/DacFx/tree/main/release-notes/Microsoft.Build.Sql</PackageReleaseNotes> |
| 24 | + <PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance> |
| 25 | + <PackageTags>dacfx sqlproj build sdk</PackageTags> |
| 26 | + <PackageType>MSBuildSDK</PackageType> |
| 27 | + <RepositoryBranch>main</RepositoryBranch> |
| 28 | + <RepositoryType>git</RepositoryType> |
| 29 | + <RepositoryUrl>https://github.com/microsoft/DacFx</RepositoryUrl> |
| 30 | + <Title>Microsoft SQL Database Project Build SDK</Title> |
14 | 31 | </PropertyGroup>
|
15 | 32 |
|
16 | 33 | <ItemGroup>
|
|
37 | 54 | <PackageFiles Include="$(PkgSystem_IO_Packaging)\lib\net8.0\System.IO.Packaging.dll" />
|
38 | 55 | </ItemGroup>
|
39 | 56 | <Copy SourceFiles="@(PackageFiles)" DestinationFolder="$(BuildBinariesPath)\%(PackageFiles.RecursiveDir)" />
|
| 57 | + <ItemGroup> |
| 58 | + <Content Include="tools\**" Pack="true" PackagePath="tools\" /> |
| 59 | + </ItemGroup> |
| 60 | + </Target> |
| 61 | + |
| 62 | + <!-- Sets the SDK version correctly in the README --> |
| 63 | + <Target Name="SetSdkAssemblyVersion" BeforeTargets="GenerateNuspec;Build"> |
| 64 | + <ItemGroup> |
| 65 | + <TemplateFiles Include="README.md" /> |
| 66 | + </ItemGroup> |
| 67 | + <Copy SourceFiles="@(TemplateFiles)" DestinationFiles="$(SdkIntermediateOutputPath)/%(RecursiveDir)%(Filename)%(Extension)" /> |
| 68 | + <ReplaceFileText |
| 69 | + InputFilename="$(SdkIntermediateOutputPath)/README.md" |
| 70 | + OutputFilename="$(SdkIntermediateOutputPath)/README.md" |
| 71 | + MatchExpression="###ASSEMBLY_VERSION###" |
| 72 | + ReplacementText="$(PackageVersion)" /> |
| 73 | + <ItemGroup> |
| 74 | + <Content Remove="$(SdkIntermediateOutputPath)\README.md" /> |
| 75 | + <Content Include="$(SdkIntermediateOutputPath)\README.md" Pack="true" PackagePath="\"/> |
| 76 | + </ItemGroup> |
40 | 77 | </Target>
|
41 | 78 |
|
42 | 79 | <Target Name="DeleteToolsFolder" AfterTargets="Clean">
|
43 | 80 | <RemoveDir Directories="$(MSBuildThisFileDirectory)\tools" />
|
44 | 81 | </Target>
|
45 | 82 |
|
46 | 83 | <ItemGroup>
|
47 |
| - <None Include="README.md" Pack="true" PackagePath="\"/> |
48 |
| - <None Remove="tools\**" /> |
| 84 | + <Content Include="sdk\**" Pack="true" PackagePath="sdk\" /> |
| 85 | + <Content Include="$(SdkIntermediateOutputPath)\README.md" Pack="true" PackagePath="\"/> |
| 86 | + <Content Include="..\..\LICENSE.txt" Pack="true" PackagePath="\" /> |
| 87 | + <Content Include="..\..\images\nuspecicon.png" Pack="true" PackagePath="images\nuspecicon.png" /> |
49 | 88 | </ItemGroup>
|
50 | 89 |
|
51 | 90 | </Project>
|
0 commit comments