Skip to content

Commit

Permalink
Packages.
Browse files Browse the repository at this point in the history
  • Loading branch information
jp2masa committed Aug 17, 2017
1 parent 374cd26 commit e2f1116
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Demos/Guess/GuessKernelBoot.Cosmos
Original file line number Diff line number Diff line change
Expand Up @@ -59,4 +59,4 @@
</ProjectReference>
</ItemGroup>
<Import Project="$(AppData)\Cosmos User Kit\Build\VSIP\Cosmos.targets" />
</Project>
</Project>
5 changes: 0 additions & 5 deletions SUPPORT.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
### Common Issues
- When installing the Dev Kit, if .NET Framework 4.6.2 isn't being found, try installing it from: https://www.microsoft.com/en-us/download/details.aspx?id=53321
- When using the Dev Kit, packages need to be updated manually. The project templates reference packages with version 1.0.\*, but that doesn't include prerelease packages and there's currently no way of including them ([NuGet/Home#912](https://github.com/NuGet/Home/issues/912)). The Dev Kit packages are prerelease, so the references need to be updated. There are two ways of doing this:
1. Edit the project file manually, and replace "1.0.\*" with the current version in master plus "-*". Example (current version): "1.0.2-\*".
2. Remove the package references from the csproj and install them using the Manage NuGet Packages UI. Make sure you select the correct package feed ("All" or "Cosmos Local Package Feed").
- The Kernel project templates aren't currently working (User Kit and Dev Kit). These project templates aren't needed, and the .NET Standard Library project template should be used instead.
- AssemblyInfo isn't created for .NET Core projects. It's automatically generated by the .NET compiler, but custom assembly attributes can be added. For that, simply create an AssemblyInfo file (with the correct file extension) and add the attributes that you need. Be aware that the attributes generated by the .NET compiler cannot be declared more than once.
21 changes: 21 additions & 0 deletions source/Directory.Build.props
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<Project>

<PropertyGroup>
<!--
This property should exist, according to the docs, but it has no effect on pack.
-->
<PackageVersionPrefix>$([System.DateTime]::Now.ToString("yyyy.MM.dd"))</PackageVersionPrefix>
<PackageVersion Condition="$(PackageVersionPrefix) != '' and $(VersionSuffix) != ''">$(PackageVersionPrefix)-$(VersionSuffix)</PackageVersion>
<PackageVersion Condition="$(PackageVersionPrefix) != '' and $(VersionSuffix) == ''">$(PackageVersionPrefix)</PackageVersion>
<Authors>Cosmos</Authors>
<Company>Cosmos</Company>
<Copyright>Copyright © 2007-$([System.DateTime]::Now.Year) COSMOS Project</Copyright>
<PackageIconUrl>https://github.com/CosmosOS/Cosmos/raw/master/Artwork/Cosmos.ico</PackageIconUrl>
<PackageProjectUrl>http://www.gocosmos.org</PackageProjectUrl>
<PackageLicenseUrl>https://github.com/CosmosOS/Cosmos/blob/master/LICENSE.txt</PackageLicenseUrl>
<PackageTags>Cosmos OS Operating System</PackageTags>
<RepositoryUrl>https://github.com/CosmosOS/Cosmos</RepositoryUrl>
<CosmosDescription>Cosmos is an operating system "construction kit". Build your own OS using managed languages such as C#, VB.NET, and more!</CosmosDescription>
</PropertyGroup>

</Project>

0 comments on commit e2f1116

Please sign in to comment.