Skip to content

Commit

Permalink
Package configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
albertospelta committed Mar 26, 2022
1 parent 76bcf57 commit d3bf37d
Show file tree
Hide file tree
Showing 7 changed files with 39 additions and 6 deletions.
File renamed without changes.
2 changes: 2 additions & 0 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
<Project>
<PropertyGroup>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<PackageOutputPath>$(MSBuildThisFileDirectory)/artifacts</PackageOutputPath>
</PropertyGroup>
</Project>
6 changes: 3 additions & 3 deletions src/Minsk.TestConsole/Minsk.Console.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFrameworks>net461;netcoreapp3.1;net6.0</TargetFrameworks>
<AssemblyName>Minsk.TConsole</AssemblyName>
<RootNamespace>Minsk</RootNamespace>
<RootNamespace>Minsk.Console</RootNamespace>
<AssemblyName>Minsk.Console</AssemblyName>
<IsPackable>false</IsPackable>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\Minsk\Minsk.csproj" />
<PackageReference Include="Minsk.Compiler" Version="1.0.1-beta1" />
</ItemGroup>

</Project>
2 changes: 2 additions & 0 deletions src/Minsk.Tests/Minsk.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@

<PropertyGroup>
<TargetFrameworks>net461;netcoreapp3.1;net6.0</TargetFrameworks>
<RootNamespace>Minsk.Tests</RootNamespace>
<AssemblyName>Minsk.Tests</AssemblyName>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>false</IsPackable>
Expand Down
1 change: 1 addition & 0 deletions src/Minsk.sln
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ EndProject
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution Items", "{98E94102-3E34-4F8D-B491-EE2E2F3B132E}"
ProjectSection(SolutionItems) = preProject
Directory.Build.props = Directory.Build.props
nuget.config = nuget.config
EndProjectSection
EndProject
Global
Expand Down
26 changes: 23 additions & 3 deletions src/Minsk/Minsk.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,20 @@
<TargetFrameworks>net461;netstandard2.0;net6.0</TargetFrameworks>
<LangVersion>latest</LangVersion>
<Nullable>enable</Nullable>
<IsPackable>true</IsPackable>
<RootNamespace>Minsk</RootNamespace>
<AssemblyName>Minsk</AssemblyName>

<!-- version numbers will be updated by build -->
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<AssemblyVersion>1.0.0.0</AssemblyVersion>
<FileVersion>1.0.1</FileVersion>
<VersionPrefix>1.0.1</VersionPrefix>
<VersionSuffix>beta1</VersionSuffix>

<Authors>Alberto Spelta</Authors>
<Product>Minsk Compiler</Product>
<Description>Building a compiler in C#</Description>
<Copyright>Copyright © 2022</Copyright>
<Copyright>No copyright © 2022</Copyright>
<Summary>Building a compiler in C# uses many of the concepts that you can find in the Microsoft C# and Visual Basic compilers, code named Roslyn</Summary>
<NeutralLanguage>en-US</NeutralLanguage>
<Title>Minsk</Title>
Expand All @@ -24,15 +28,31 @@
<PackageIconUrl>https://raw.githubusercontent.com/albertospelta/minsk/master/src/Minsk/Assets/minsk.png</PackageIconUrl>
<PackageProjectUrl>https://github.com/albertospelta/minsk</PackageProjectUrl>
<PackageLicenseExpression>MIT</PackageLicenseExpression>

<PublishRepositoryUrl>true</PublishRepositoryUrl>
<EmbedUntrackedSources>true</EmbedUntrackedSources>
<IncludeSymbols>true</IncludeSymbols>
<SymbolPackageFormat>snupkg</SymbolPackageFormat>
<Deterministic>true</Deterministic>
<ContinuousIntegrationBuild>true</ContinuousIntegrationBuild>
<!--
Package Validation
https://devblogs.microsoft.com/dotnet/package-validation/
<EnablePackageValidation>true</EnablePackageValidation>
<PackageValidationBaselineVersion>13.0.1</PackageValidationBaselineVersion>
-->
</PropertyGroup>

<ItemGroup>
<None Include="..\..\LICENSE.md" Pack="true" PackagePath="\" />
<None Include="..\..\README.md" Pack="true" PackagePath="\" />
<None Include="icon.png" Pack="true" PackagePath="\" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="Microsoft.SourceLink.GitHub" Version="1.1.1">
<PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference>
<PackageReference Include="System.Collections.Immutable" Version="6.0.0" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>
Expand Down
8 changes: 8 additions & 0 deletions src/nuget.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageSources>
<clear />
<add key="local" value="./artifacts" />
<add key="NuGet.org (v3)" value="https://api.nuget.org/v3/index.json" />
</packageSources>
</configuration>

0 comments on commit d3bf37d

Please sign in to comment.