Skip to content

Commit

Permalink
Generate assembly version from csproj
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Ganss committed Aug 29, 2017
1 parent 2050d80 commit 403fede
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
6 changes: 1 addition & 5 deletions XmlSchemaClassGenerator.Console/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
using System.Runtime.InteropServices;

#if !NETSTANDARD

Expand All @@ -13,5 +11,3 @@
[assembly: Guid("bd5c99cb-a57e-43d9-a14f-7f2a7ef9eb48")]

#endif

[assembly: AssemblyVersion("2.0.0.0")]
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,8 @@
<Copyright>Copyright 2013-2017 Michael Ganss</Copyright>
<AssemblyTitle>XmlSchemaClassGenerator.Console</AssemblyTitle>
<VersionPrefix>1.0.0-VERSION</VersionPrefix>
<Authors>Michael Ganss</Authors>
<TargetFrameworks>net45;netcoreapp2.0</TargetFrameworks>
<AssemblyName>XmlSchemaClassGenerator.Console</AssemblyName>
<PackageId>XmlSchemaClassGenerator.Console</PackageId>
<PackageTags>xsd</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>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<RootNamespace>XmlSchemaClassGenerator.Console</RootNamespace>
<OutputType>Exe</OutputType>
</PropertyGroup>
Expand Down
2 changes: 0 additions & 2 deletions XmlSchemaClassGenerator/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,3 @@
[assembly: Guid("de5a48df-c5c0-4efc-9516-264d4e76d2a9")]

#endif

[assembly: AssemblyVersion("2.0.0.0")]
5 changes: 4 additions & 1 deletion XmlSchemaClassGenerator/XmlSchemaClassGenerator.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
<PackageLicenseUrl>https://github.com/mganss/XmlSchemaClassGenerator/blob/master/LICENSE</PackageLicenseUrl>
<RepositoryType>git</RepositoryType>
<RepositoryUrl>git://github.com/mganss/XmlSchemaClassGenerator</RepositoryUrl>
<GenerateAssemblyVersionAttribute>false</GenerateAssemblyVersionAttribute>
<RootNamespace>XmlSchemaClassGenerator</RootNamespace>
</PropertyGroup>

Expand Down Expand Up @@ -49,4 +48,8 @@
</None>
</ItemGroup>

<ItemGroup>
<Folder Include="Properties\" />
</ItemGroup>

</Project>

0 comments on commit 403fede

Please sign in to comment.