Skip to content

Commit

Permalink
Merge pull request #99 from faniereynders/master
Browse files Browse the repository at this point in the history
added new project-level cli tool to support DotNetCliToolReference
  • Loading branch information
mganss authored Jan 31, 2019
2 parents 54ea71e + 1fe6ac9 commit 05c4e33
Show file tree
Hide file tree
Showing 3 changed files with 38 additions and 1 deletion.
2 changes: 1 addition & 1 deletion XmlSchemaClassGenerator/XmlSchemaClassGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<AssemblyTitle>XmlSchemaClassGenerator</AssemblyTitle>
<VersionPrefix>1.0.0-VERSION</VersionPrefix>
<Authors>Michael Ganss</Authors>
<TargetFrameworks>net45;netstandard2.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net45</TargetFrameworks>
<AssemblyName>XmlSchemaClassGenerator</AssemblyName>
<PackageId>XmlSchemaClassGenerator-beta</PackageId>
<PackageTags>xsd</PackageTags>
Expand Down
3 changes: 3 additions & 0 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ build_script:
- ps: (Get-Content XmlSchemaClassGenerator\XmlSchemaClassGenerator.csproj).Replace("1.0.0-VERSION", $env:APPVEYOR_BUILD_VERSION) | Set-Content XmlSchemaClassGenerator\XmlSchemaClassGenerator.csproj
- ps: (Get-Content XmlSchemaClassGenerator.Console\XmlSchemaClassGenerator.Console.csproj).Replace("1.0.0-VERSION", $env:APPVEYOR_BUILD_VERSION) | Set-Content XmlSchemaClassGenerator.Console\XmlSchemaClassGenerator.Console.csproj
- ps: (Get-Content xscgen\xscgen.csproj).Replace("1.0.0-VERSION", $env:APPVEYOR_BUILD_VERSION) | Set-Content xscgen\xscgen.csproj
- ps: (Get-Content xscgen-proj\xscgen-proj.csproj).Replace("1.0.0-VERSION", $env:APPVEYOR_BUILD_VERSION) | Set-Content xscgen-proj\xscgen-proj.csproj
- dotnet --info
- dotnet restore
- dotnet build -c Release
- dotnet publish XmlSchemaClassGenerator.Console -c Release -f net45
- dotnet pack --include-symbols --include-source -c Release XmlSchemaClassGenerator
- dotnet pack --include-symbols --include-source -c Release XmlSchemaClassGenerator.Console
- dotnet pack --include-symbols --include-source -c Release xscgen
- dotnet pack --include-symbols --include-source -c Release xscgen-proj
- 7z a -mx=9 XmlSchemaClassGenerator.%APPVEYOR_BUILD_VERSION%.zip ".\XmlSchemaClassGenerator.Console\bin\Release\net45\publish\*"
test_script:
- ps: |
Expand All @@ -38,6 +40,7 @@ artifacts:
- path: 'XmlSchemaClassGenerator\**\*.nupkg'
- path: 'XmlSchemaClassGenerator.Console\**\*.nupkg'
- path: 'xscgen\**\*.nupkg'
- path: 'xscgen-proj\**\*.nupkg'
- path: XmlSchemaClassGenerator.%APPVEYOR_BUILD_VERSION%.zip
on_success:
- ps: |
Expand Down
34 changes: 34 additions & 0 deletions xscgen-proj/xscgen-proj.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.1</TargetFramework>
<Description>A .NET Core CLI tool to generate XmlSerializer compatible C# classes from XML Schema files.</Description>
<Copyright>Copyright 2013-2018 Michael Ganss</Copyright>
<AssemblyTitle>xscgen</AssemblyTitle>
<VersionPrefix>1.0.0</VersionPrefix>
<AssemblyName>dotnet-xscgen</AssemblyName>
<RootNamespace>XmlSchemaClassGenerator.Console</RootNamespace>
<Authors>Michael Ganss</Authors>
<PackageId>dotnet-xscgen-proj</PackageId>
<PackageTags>xsd xmlschema generator</PackageTags>
<PackageProjectUrl>https://github.com/mganss/XmlSchemaClassGenerator</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/mganss/XmlSchemaClassGenerator/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>git://github.com/mganss/XmlSchemaClassGenerator</RepositoryUrl>
<ToolCommandName>dotnet-xscgen</ToolCommandName>
<DefineConstants>$(DefineConstants);NETSTANDARD</DefineConstants>
</PropertyGroup>
<ItemGroup>
<ProjectReference Include="..\XmlSchemaClassGenerator\XmlSchemaClassGenerator.csproj" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\XmlSchemaClassGenerator.Console\**\*.cs" Exclude="..\XmlSchemaClassGenerator.Console\obj\**\*;..\XmlSchemaClassGenerator.Console\bin\**\*" />
</ItemGroup>
<ItemGroup>
<PackageReference Include="Glob.cs" Version="2.0.13" />
<PackageReference Include="Mono.Options" Version="5.3.0.1" />
</ItemGroup>
<PropertyGroup>
<SonarQubeExclude>true</SonarQubeExclude>
</PropertyGroup>
</Project>

0 comments on commit 05c4e33

Please sign in to comment.