|
| 1 | +<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> |
| 2 | + |
| 3 | + <PropertyGroup Condition=" '$(TargetFramework)' == 'netstandard2.0' OR '$(TargetFramework)' == 'netcoreapp2.1' "> |
| 4 | + <DefineConstants>LIBLOG_PORTABLE</DefineConstants> |
| 5 | + </PropertyGroup> |
| 6 | + |
| 7 | + <PropertyGroup> |
| 8 | + <SolutionDir>$([System.IO.Path]::GetDirectoryName($(MSBuildProjectDirectory)))\</SolutionDir> |
| 9 | + </PropertyGroup> |
| 10 | + |
| 11 | + <Import Project="Directory.Version.props" /> |
| 12 | + <Import Project="Directory.Dependencies.Commons.props" /> |
| 13 | + <Import Project="Directory.CodeAnalysis.props" /> |
| 14 | + |
| 15 | + <ItemGroup> |
| 16 | + <Content Include="README.md"><Pack>true</Pack><PackagePath>..\</PackagePath></Content> |
| 17 | + <Content Include="LICENSE"><Pack>true</Pack><PackagePath>LICENSE</PackagePath></Content> |
| 18 | + </ItemGroup> |
| 19 | + |
| 20 | + <PropertyGroup Label="Common Package"> |
| 21 | + <Copyright>Copyright (c) Courio-Dev and contributors. All rights reserved.</Copyright> |
| 22 | + <Description>Description</Description> |
| 23 | + <Authors>Courio-Dev</Authors> |
| 24 | + <Company>Courio-Dev</Company> |
| 25 | + <PackageProjectUrl>https://github.com/Courio-Dev/UnobtrusiveMultitenancy</PackageProjectUrl> |
| 26 | + <PackageLicenseUrl>https://github.com/Courio-Dev/UnobtrusiveMultitenancy/blob/master/LICENSE</PackageLicenseUrl> |
| 27 | + <PackageIconUrl>https://github.com/Courio-Dev/UnobtrusiveMultitenancy</PackageIconUrl> |
| 28 | + <RepositoryUrl>https://github.com/Courio-Dev/UnobtrusiveMultitenancy</RepositoryUrl> |
| 29 | + <RepositoryType>git</RepositoryType> |
| 30 | + <PackageTags> |
| 31 | + multitenancy |
| 32 | + multitenant |
| 33 | + multitenant-applications |
| 34 | + tenant |
| 35 | + dependency-injection |
| 36 | + aspnet-core-2 |
| 37 | + aspnet-core-mvc |
| 38 | + net-core-2 |
| 39 | + </PackageTags> |
| 40 | + </PropertyGroup> |
| 41 | + |
| 42 | + <!-- Use for debug --> |
| 43 | + <!-- https://chimpiq.com/msbuild-part-3/ --> |
| 44 | + <!-- https://stackoverflow.com/questions/2111256/how-can-i-get-current-directory-in-msbuild-script --> |
| 45 | + <!-- https://www.newventuresoftware.com/blog/code-bites-copying-output-files-after-build-using-msbuild --> |
| 46 | + <!-- http://sedodream.com/2008/06/09/MSBuildReservedProperties.aspx --> |
| 47 | + <!-- http://sedodream.com/2007/11/21/MSBuildHowToGetAllGeneratedOutputs.aspx --> |
| 48 | + <!-- https://blogs.msdn.microsoft.com/visualstudio/2010/07/06/debugging-msbuild-script-with-visual-studio/ --> |
| 49 | + <!-- https://natemcmaster.com/blog/2017/07/05/msbuild-task-in-nuget/ --> |
| 50 | + <Target Name="Display SetPackageProperties" BeforeTargets="SetPackageProperties"> |
| 51 | + <Message Text="$(PackageId)" Importance="high"/> |
| 52 | + <Message Text="$(PackageVersion)" Importance="high"/> |
| 53 | + <Message Text="$(Configuration)" Importance="high"/> |
| 54 | + <Message Text="$(PackageTags.Replace(';',' '))" Importance="high"/> |
| 55 | + <Message Text="$(PackageProjectUrl)" Importance="high"/> |
| 56 | + <Message Text="$(PackageLicenseUrl)" Importance="high"/> |
| 57 | + <Message Text="$(PackageIconUrl)" Importance="high"/> |
| 58 | + <Message Text="$(RepositoryUrl)" Importance="high"/> |
| 59 | + <Message Text="$(RepositoryType)" Importance="high"/> |
| 60 | + <Message Text="$(Authors)" Importance="high"/> |
| 61 | + <Message Text="$(Copyright)" Importance="high"/> |
| 62 | + <Message Text="$(Description)" Importance="high"/> |
| 63 | + <Message Text="OutputPath: $(OutputPath)" Importance="high"/> |
| 64 | + <Message Text="MSBuildProjectDirectory: $(MSBuildProjectDirectory)" Importance="high"/> |
| 65 | + |
| 66 | + <Message Text="PublishDir: $(PublishDir)" Importance="high"/> |
| 67 | + <Message Text="SolutionDir: $(SolutionDir)" Importance="high"/> |
| 68 | + <Message Text="OutputShims: $(IntermediateOutputPath)shims\$(TargetFramework)" Importance="high"/> |
| 69 | + <Message Text="OutputBinary: $(MSBuildProjectDirectory)\$(OutputPath)" Importance="high"/> |
| 70 | + <Message Text="OutputRuntimeConfig: $(MSBuildProjectDirectory)\netcoreapp2.0\$(PackageId).runtimeconfig.json" Importance="high"/> |
| 71 | + <Message Text="OutputSymbol: $(MSBuildProjectDirectory)\netcoreapp2.0\$(PackageId).pdb" Importance="high"/> |
| 72 | + </Target> |
| 73 | + |
| 74 | + <Target Name="SetPackageProperties" BeforeTargets="GenerateNuspec"> |
| 75 | + <PropertyGroup> |
| 76 | + <IncludeSymbols>true</IncludeSymbols> |
| 77 | + <NuspecProperties> |
| 78 | + id=$(PackageId); |
| 79 | + version=$(PackageVersion); |
| 80 | + configuration=$(Configuration); |
| 81 | + tags=$(PackageTags.Replace("&", "&amp;")); |
| 82 | + projectUrl=$(PackageProjectUrl); |
| 83 | + licenseUrl=$(PackageLicenseUrl); |
| 84 | + iconUrl=$(PackageIconUrl); |
| 85 | + repositoryUrl=$(RepositoryUrl); |
| 86 | + repositoryType=$(RepositoryType); |
| 87 | + author=$(Authors); |
| 88 | + copyright=$(Copyright); |
| 89 | + description=$(Description); |
| 90 | + |
| 91 | + OutputBaseBinary=$(MSBuildProjectDirectory)\$(OutputPath); |
| 92 | + </NuspecProperties> |
| 93 | + </PropertyGroup> |
| 94 | + </Target> |
| 95 | + |
| 96 | + <PropertyGroup Label="Source Link"> |
| 97 | + <!-- Optional: Declare that the Repository URL can be published to NuSpec --> |
| 98 | + <PublishRepositoryUrl>true</PublishRepositoryUrl> |
| 99 | + <!-- Optional: Embed source files that are not tracked by the source control manager to the PDB --> |
| 100 | + <EmbedUntrackedSources>true</EmbedUntrackedSources> |
| 101 | + <!-- Optional: Include PDB in the built .nupkg --> |
| 102 | + <AllowedOutputExtensionsInPackageBuildOutputFolder>$(AllowedOutputExtensionsInPackageBuildOutputFolder);.pdb</AllowedOutputExtensionsInPackageBuildOutputFolder> |
| 103 | + </PropertyGroup> |
| 104 | + |
| 105 | + <PropertyGroup Label="Package Versions"> |
| 106 | + <AspNetCoreVersion>2.1.1</AspNetCoreVersion> |
| 107 | + <XunitVersion>2.3.1</XunitVersion> |
| 108 | + <XunitAnalyzersVersion>0.8.0</XunitAnalyzersVersion> |
| 109 | + </PropertyGroup> |
| 110 | + |
| 111 | +</Project> |
0 commit comments