diff options
author | Doug Bunting <6431421+dougbu@users.noreply.github.com> | 2021-07-30 01:23:44 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-30 01:23:44 +0300 |
commit | 373712a22074c9cec3461dc5322300ccfc229ef7 (patch) | |
tree | 889c12caf8b3fae6c19ecf3ebe100ede2be56c1d /Directory.Build.props | |
parent | 9b004357a3c471f2b2b8bf652dec7e7336a08475 (diff) |
Get local builds working (#7)
* Get local builds working
- no solution file or build scripts but `dotnet pack` does the trick
- last part of #32027 unless we need Arcade or a CI build urgently
Main work was to add a few missing files and modify them for this environment
- mostly copied from dotnet/aspnetcore
- Directory.Build.props and Directory.Build.targets created from scratch
- some content copied from dotnet/arcade and dotnet/aspnetcore
- NuGet.config and eng/Versions.props copied but pared down (a lot) to mandatory bits for an isolated build
- new eng/ files mostly came from src/ProjectTemplates/ in dotnet/aspnetcore
- eng/DotNetPackageIcon.png came from src/Microsoft.DotNet.Arcade.Sdk/tools/Assets/ in dotnet/arcade
- eng/Packaging.targets copied from src/Microsoft.DotNet.Arcade.Sdk/tools/Workarounds.targets in dotnet/arcade
nits:
- fix whitespace Directory.Build.targets target added to `$(Description)`
- fix typo in the `_AppendRepositoryUrlToPackageDescription` target name
- remove src/.gitignore and move content into new root .gitignore file
- remove SECURITY.md trailing whitespace
Diffstat (limited to 'Directory.Build.props')
-rw-r--r-- | Directory.Build.props | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/Directory.Build.props b/Directory.Build.props new file mode 100644 index 0000000..22a9c3c --- /dev/null +++ b/Directory.Build.props @@ -0,0 +1,32 @@ +<!-- Everything in this file should have conditions that check $(RepoRoot). --> +<Project> + <!-- + When outside dotnet/aspnetcore, intentionally break the inheritance chain. + Isolate this repo from irrelevant settings in parent folders. + --> + <Import Project="$(RepoRoot)src/ProjectTemplates/Directory.Build.props" Condition=" '$(RepoRoot)' != '' " /> + + <PropertyGroup Condition=" '$(RepoRoot)' == '' "> + <RepositoryUrl>https://github.com/dotnet/spa-templates</RepositoryUrl> + + <!-- Copied from https://github.com/dotnet/aspnetcore/blob/0c5456afe95096db6ac5400cecd3440299b42714/Directory.Build.props. --> + <NuspecBasePath>$(MSBuildProjectDirectory)</NuspecBasePath> + <!-- The SPDX name for the source license. See https://spdx.org/licenses/. --> + <PackageLicenseExpression>MIT</PackageLicenseExpression> + <PackageProjectUrl>https://asp.net</PackageProjectUrl> + <RepositoryType>git</RepositoryType> + + <!-- Copied from https://github.com/dotnet/arcade/blob/c6a28c81f96d196338b3ea520bc1e6dc7c440e/src/Microsoft.DotNet.Arcade.Sdk/tools/ProjectDefaults.props. --> + <Authors>Microsoft</Authors> + <Copyright>© Microsoft Corporation. All rights reserved.</Copyright> + <DevelopmentDependency>false</DevelopmentDependency> + <PackageIcon>Icon.png</PackageIcon> + <PackageIconFullPath>$(MSBuildThisFileDirectory)eng/DotNetPackageIcon.png</PackageIconFullPath> + <PackageRequireLicenseAcceptance>true</PackageRequireLicenseAcceptance> + <Serviceable>true</Serviceable> + </PropertyGroup> + + <Import Project="eng/TemplateProjects.props" Condition=" '$(RepoRoot)' == '' " /> + <!-- The Arcade SDK auto-includes eng/Versions.props. --> + <Import Project="eng/Versions.props" Condition=" '$(RepoRoot)' == '' " /> +</Project> |