This repository has been archived by the owner on Nov 20, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add custom tool for packaging as "CLI" package types.
Resolves #157
- Loading branch information
Nate McMaster
committed
Sep 30, 2016
1 parent
61dc862
commit 3b1f650
Showing
13 changed files
with
427 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,38 @@ | ||
{ | ||
"adx": { // Packages written by the ADX team and that ship on NuGet.org | ||
"rules": [ | ||
"AdxVerificationCompositeRule" | ||
], | ||
"packages": { | ||
"Microsoft.DotNet.Watcher.Tools": { }, | ||
"Microsoft.Extensions.Caching.SqlConfig.Tools": { }, | ||
"Microsoft.Extensions.SecretManager.Tools": { } | ||
} | ||
}, | ||
"Default": { // Rules to run for packages not listed in any other set. | ||
"rules": [ | ||
"DefaultCompositeRule" | ||
] | ||
} | ||
{ | ||
"adx": { | ||
"rules": [ | ||
"AdxVerificationCompositeRule" | ||
], | ||
"packages": { | ||
"Microsoft.DotNet.Watcher.Tools": { | ||
"nowarn": { | ||
"DOC_MISSING": { | ||
"lib/netcoreapp1.0/dotnet-watch.dll": "xmldocs not required for DotnetCliTool packages" | ||
} | ||
}, | ||
"packageTypes": ["DotnetCliTool"] | ||
}, | ||
"Microsoft.Extensions.Caching.SqlConfig.Tools": { | ||
"nowarn": { | ||
"DOC_MISSING": { | ||
"lib/netcoreapp1.0/dotnet-sql-cache.dll": "xmldocs not required for DotnetCliTool packages" | ||
} | ||
}, | ||
"packageTypes": ["DotnetCliTool"] | ||
}, | ||
"Microsoft.Extensions.SecretManager.Tools": { | ||
"nowarn": { | ||
"DOC_MISSING": { | ||
"lib/netcoreapp1.0/dotnet-user-secrets.dll": "xmldocs not required for DotnetCliTool packages" | ||
} | ||
}, | ||
"packageTypes": ["DotnetCliTool"] | ||
} | ||
} | ||
}, | ||
"Default": { | ||
"rules": [ | ||
"DefaultCompositeRule" | ||
] | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,25 @@ | ||
use namespace="System.IO" | ||
|
||
default BASE_DIR_LOCAL='${Directory.GetCurrentDirectory()}' | ||
default BUILD_DIR_LOCAL='${Path.Combine(BASE_DIR_LOCAL, "artifacts", "build")}' | ||
|
||
var VERSION='0.1' | ||
var FULL_VERSION='0.1' | ||
var AUTHORS='Microsoft Open Technologies, Inc.' | ||
-BuildQuality = "preview3"; | ||
|
||
use-standard-lifecycle | ||
k-standard-goals | ||
k-standard-goals | ||
|
||
#build-pack .build-compile target='compile' | ||
@{ | ||
if (Directory.Exists("src") && !IsLinux) | ||
{ | ||
Directory.CreateDirectory(BUILD_DIR_LOCAL); | ||
Dotnet("run -p tools/NuGetPackager -- -c " + E("Configuration") + | ||
" -o artifacts/build/ "+ | ||
"-n src/Microsoft.Extensions.SecretManager.Tools/Microsoft.Extensions.SecretManager.Tools.nuspec " + | ||
"-n src/Microsoft.Extensions.Caching.SqlConfig.Tools/Microsoft.Extensions.Caching.SqlConfig.Tools.nuspec " + | ||
"-n src/Microsoft.DotNet.Watcher.Tools/Microsoft.DotNet.Watcher.Tools.nuspec "); | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
src/Microsoft.DotNet.Watcher.Tools/Microsoft.DotNet.Watcher.Tools.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> | ||
<metadata> | ||
<id>Microsoft.DotNet.Watcher.Tools</id> | ||
<version>$version$</version> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Command line tool to watch for source file changes during development and restart the dotnet command.</description> | ||
<tags>dotnet,watch</tags> | ||
<serviceable>true</serviceable> | ||
<packageTypes> | ||
<packageType name="DotnetCliTool" /> | ||
</packageTypes> | ||
<dependencies> | ||
<group targetFramework=".NETCoreApp1.0"> | ||
<dependency id="Microsoft.DotNet.Cli.Utils" version="$dep_1$" /> | ||
<dependency id="Microsoft.Extensions.CommandLineUtils" version="$dep_2$" /> | ||
<dependency id="Microsoft.Extensions.Logging" version="$dep_3$" /> | ||
<dependency id="Microsoft.Extensions.Logging.Console" version="$dep_4$" /> | ||
<dependency id="Microsoft.NETCore.App" version="$dep_5$" /> | ||
<dependency id="System.Runtime.InteropServices.RuntimeInformation" version="$dep_6$" /> | ||
</group> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="bin/$configuration$/netcoreapp1.0/dotnet-watch.dll" target="lib\netcoreapp1.0\" /> | ||
<file src="bin/$configuration$/netcoreapp1.0/dotnet-watch.runtimeconfig.json" target="lib/netcoreapp1.0\" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
29 changes: 29 additions & 0 deletions
29
...ft.Extensions.Caching.SqlConfig.Tools/Microsoft.Extensions.Caching.SqlConfig.Tools.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> | ||
<metadata> | ||
<id>Microsoft.Extensions.Caching.SqlConfig.Tools</id> | ||
<version>$version$</version> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Command line tool to create tables and indexes in a Microsoft SQL Server database for distributed caching.</description> | ||
<tags>cache,distributedcache,sqlserver</tags> | ||
<serviceable>true</serviceable> | ||
<packageTypes> | ||
<packageType name="DotnetCliTool" /> | ||
</packageTypes> | ||
<dependencies> | ||
<group targetFramework=".NETCoreApp1.0"> | ||
<dependency id="Microsoft.Extensions.CommandLineUtils" version="$dep_1$" /> | ||
<dependency id="Microsoft.Extensions.Logging" version="$dep_2$" /> | ||
<dependency id="Microsoft.Extensions.Logging.Console" version="$dep_3$" /> | ||
<dependency id="Microsoft.NETCore.App" version="$dep_4$" /> | ||
<dependency id="System.Data.SqlClient" version="$dep_5$" /> | ||
</group> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="bin/$configuration$/netcoreapp1.0/dotnet-sql-cache.dll" target="lib\netcoreapp1.0\" /> | ||
<file src="bin/$configuration$/netcoreapp1.0/dotnet-sql-cache.runtimeconfig.json" target="lib\netcoreapp1.0\" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
33 changes: 33 additions & 0 deletions
33
src/Microsoft.Extensions.SecretManager.Tools/Microsoft.Extensions.SecretManager.Tools.nuspec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<!-- TODO use first-class tooling when this becomes available --> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2012/06/nuspec.xsd"> | ||
<metadata> | ||
<id>Microsoft.Extensions.SecretManager.Tools</id> | ||
<version>$version$</version> | ||
<authors>Microsoft</authors> | ||
<owners>Microsoft</owners> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>Command line tool to manage user secrets for Microsoft.Extensions.Configuration.</description> | ||
<tags>configuration,secrets,usersecrets</tags> | ||
<serviceable>true</serviceable> | ||
<packageTypes> | ||
<packageType name="DotnetCliTool" /> | ||
</packageTypes> | ||
<dependencies> | ||
<group targetFramework=".NETCoreApp1.0"> | ||
<!-- MUST BE alphabetical --> | ||
<dependency id="Microsoft.Extensions.Configuration.UserSecrets" version="$dep_1$" /> | ||
<dependency id="Microsoft.Extensions.CommandLineUtils" version="$dep_2$" /> | ||
<dependency id="Microsoft.Extensions.Logging" version="$dep_3$" /> | ||
<dependency id="Microsoft.NETCore.App" version="$dep_4$" /> | ||
<dependency id="Newtonsoft.Json" version="$dep_5$" /> | ||
<dependency id="System.Runtime.InteropServices.RuntimeInformation" version="$dep_6$" /> | ||
<dependency id="System.Runtime.Serialization.Primitives" version="$dep_7$" /> | ||
</group> | ||
</dependencies> | ||
</metadata> | ||
<files> | ||
<file src="bin/$configuration$/netcoreapp1.0/dotnet-user-secrets.dll" target="lib\netcoreapp1.0\" /> | ||
<file src="bin/$configuration$/netcoreapp1.0/dotnet-user-secrets.runtimeconfig.json" target="lib/netcoreapp1.0\" /> | ||
</files> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="14.0.25420" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<PropertyGroup> | ||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">14.0.25420</VisualStudioVersion> | ||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | ||
</PropertyGroup> | ||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.Props" Condition="'$(VSToolsPath)' != ''" /> | ||
<PropertyGroup Label="Globals"> | ||
<ProjectGuid>8b781d87-1fc3-4a34-9089-2bdf6b562b85</ProjectGuid> | ||
<RootNamespace>NuGetPackager</RootNamespace> | ||
<BaseIntermediateOutputPath Condition="'$(BaseIntermediateOutputPath)'=='' ">.\obj</BaseIntermediateOutputPath> | ||
<OutputPath Condition="'$(OutputPath)'=='' ">.\bin\</OutputPath> | ||
</PropertyGroup> | ||
|
||
<PropertyGroup> | ||
<SchemaVersion>2.0</SchemaVersion> | ||
</PropertyGroup> | ||
<Import Project="$(VSToolsPath)\DotNet\Microsoft.DotNet.targets" Condition="'$(VSToolsPath)' != ''" /> | ||
</Project> |
Oops, something went wrong.