Skip to content

Commit

Permalink
Merge pull request #58 from jjonescz/aspnet9
Browse files Browse the repository at this point in the history
Add AspNet90 ref assemblies
  • Loading branch information
jaredpar authored Aug 21, 2024
2 parents 45c550b + cfc07e6 commit e6e1b48
Show file tree
Hide file tree
Showing 6 changed files with 10,421 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<IsPackable>true</IsPackable>
<RunAnalyzers>false</RunAnalyzers>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.App.Ref" Version="9.0.0-preview.6.24328.4" IncludeAssets="none" PrivateAssets="all" GeneratePathProperty="true" />
</ItemGroup>

<Import Project="Generated.targets" />
</Project>
9,170 changes: 9,170 additions & 0 deletions Basic.Reference.Assemblies.AspNet90/Generated.cs

Large diffs are not rendered by default.

1,212 changes: 1,212 additions & 0 deletions Basic.Reference.Assemblies.AspNet90/Generated.targets

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions Basic.Reference.Assemblies.sln
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basic.Reference.Assemblies.
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basic.Reference.Assemblies.Net40", "Basic.Reference.Assemblies.Net40\Basic.Reference.Assemblies.Net40.csproj", "{91269B33-796A-4143-A96E-072D87A2C084}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basic.Reference.Assemblies.AspNet90", "Basic.Reference.Assemblies.AspNet90\Basic.Reference.Assemblies.AspNet90.csproj", "{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Expand Down Expand Up @@ -279,6 +281,18 @@ Global
{91269B33-796A-4143-A96E-072D87A2C084}.Release|x64.Build.0 = Release|Any CPU
{91269B33-796A-4143-A96E-072D87A2C084}.Release|x86.ActiveCfg = Release|Any CPU
{91269B33-796A-4143-A96E-072D87A2C084}.Release|x86.Build.0 = Release|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|Any CPU.Build.0 = Debug|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|x64.ActiveCfg = Debug|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|x64.Build.0 = Debug|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|x86.ActiveCfg = Debug|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|x86.Build.0 = Debug|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|Any CPU.ActiveCfg = Release|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|Any CPU.Build.0 = Release|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|x64.ActiveCfg = Release|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|x64.Build.0 = Release|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|x86.ActiveCfg = Release|Any CPU
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
Expand Down
4 changes: 2 additions & 2 deletions Docs/Updating.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

## Creating a new Target Framework

To create a new Target Framework assembly do the following. Note: this is written for creating `net7.0` but can be applied to any target framework by using the approriate moniker:
To create a new Target Framework assembly do the following. Note: this is written for creating `net7.0` but can be applied to any target framework by using the appropriate moniker:

First need to find the version of the Microsoft.NETCore.App.Ref to use. Navigate to the [NuPkg link](https://www.nuget.org/packages/Microsoft.NETCore.App.Ref) and find the latest version. In this case we'll be using 7.0.0-rc.1.22426.10.
First need to find the version of the Microsoft.NETCore.App.Ref to use. Navigate to the [NuPkg link](https://www.nuget.org/packages/Microsoft.NETCore.App.Ref) and find the latest version. In this case we'll be using 7.0.0-rc.1.22426.10.

Create the directory `Basic.Reference.Assemblies.Net70` and add a project file with the following format:

Expand Down
9 changes: 9 additions & 0 deletions Generate/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
Net80Windows();
Net90();
AspNet80();
AspNet90();
NetStandard13();
NetStandard20();
Net20();
Expand Down Expand Up @@ -101,6 +102,14 @@ void AspNet80()
File.WriteAllText(Path.Combine(targetDir, "Generated.targets"), content.TargetsContent, encoding);
}

void AspNet90()
{
var content = GetGeneratedContent("AspNet90", [@"microsoft.netcore.app.ref\9.0.0-preview.6.24327.7\ref\net9.0", @"microsoft.aspnetcore.app.ref\9.0.0-preview.6.24328.4\ref\net9.0"]);
var targetDir = Path.Combine(workspacePath, "Basic.Reference.Assemblies.AspNet90");
File.WriteAllText(Path.Combine(targetDir, "Generated.cs"), content.CodeContent, encoding);
File.WriteAllText(Path.Combine(targetDir, "Generated.targets"), content.TargetsContent, encoding);
}

void NetStandard13()
{
// netstandard1.3 is a special case because it's not a single package. Instead the collection of DLLs that make
Expand Down

0 comments on commit e6e1b48

Please sign in to comment.