Skip to content

Commit e6e1b48

Browse files
authored
Merge pull request #58 from jjonescz/aspnet9
Add AspNet90 ref assemblies
2 parents 45c550b + cfc07e6 commit e6e1b48

File tree

6 files changed

+10421
-2
lines changed

6 files changed

+10421
-2
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.0</TargetFramework>
5+
<IsPackable>true</IsPackable>
6+
<RunAnalyzers>false</RunAnalyzers>
7+
</PropertyGroup>
8+
9+
<ItemGroup>
10+
<PackageReference Include="Microsoft.AspNetCore.App.Ref" Version="9.0.0-preview.6.24328.4" IncludeAssets="none" PrivateAssets="all" GeneratePathProperty="true" />
11+
</ItemGroup>
12+
13+
<Import Project="Generated.targets" />
14+
</Project>

Basic.Reference.Assemblies.AspNet90/Generated.cs

Lines changed: 9170 additions & 0 deletions
Large diffs are not rendered by default.

Basic.Reference.Assemblies.AspNet90/Generated.targets

Lines changed: 1212 additions & 0 deletions
Large diffs are not rendered by default.

Basic.Reference.Assemblies.sln

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basic.Reference.Assemblies.
4141
EndProject
4242
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basic.Reference.Assemblies.Net40", "Basic.Reference.Assemblies.Net40\Basic.Reference.Assemblies.Net40.csproj", "{91269B33-796A-4143-A96E-072D87A2C084}"
4343
EndProject
44+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Basic.Reference.Assemblies.AspNet90", "Basic.Reference.Assemblies.AspNet90\Basic.Reference.Assemblies.AspNet90.csproj", "{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}"
45+
EndProject
4446
Global
4547
GlobalSection(SolutionConfigurationPlatforms) = preSolution
4648
Debug|Any CPU = Debug|Any CPU
@@ -279,6 +281,18 @@ Global
279281
{91269B33-796A-4143-A96E-072D87A2C084}.Release|x64.Build.0 = Release|Any CPU
280282
{91269B33-796A-4143-A96E-072D87A2C084}.Release|x86.ActiveCfg = Release|Any CPU
281283
{91269B33-796A-4143-A96E-072D87A2C084}.Release|x86.Build.0 = Release|Any CPU
284+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
285+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|Any CPU.Build.0 = Debug|Any CPU
286+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|x64.ActiveCfg = Debug|Any CPU
287+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|x64.Build.0 = Debug|Any CPU
288+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|x86.ActiveCfg = Debug|Any CPU
289+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Debug|x86.Build.0 = Debug|Any CPU
290+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|Any CPU.ActiveCfg = Release|Any CPU
291+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|Any CPU.Build.0 = Release|Any CPU
292+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|x64.ActiveCfg = Release|Any CPU
293+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|x64.Build.0 = Release|Any CPU
294+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|x86.ActiveCfg = Release|Any CPU
295+
{72C15DA0-4D3F-424A-9717-AB8B332A8DD4}.Release|x86.Build.0 = Release|Any CPU
282296
EndGlobalSection
283297
GlobalSection(SolutionProperties) = preSolution
284298
HideSolutionNode = FALSE

Docs/Updating.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
## Creating a new Target Framework
44

5-
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:
5+
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:
66

7-
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.
7+
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.
88

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

Generate/Program.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
Net80Windows();
1818
Net90();
1919
AspNet80();
20+
AspNet90();
2021
NetStandard13();
2122
NetStandard20();
2223
Net20();
@@ -101,6 +102,14 @@ void AspNet80()
101102
File.WriteAllText(Path.Combine(targetDir, "Generated.targets"), content.TargetsContent, encoding);
102103
}
103104

105+
void AspNet90()
106+
{
107+
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"]);
108+
var targetDir = Path.Combine(workspacePath, "Basic.Reference.Assemblies.AspNet90");
109+
File.WriteAllText(Path.Combine(targetDir, "Generated.cs"), content.CodeContent, encoding);
110+
File.WriteAllText(Path.Combine(targetDir, "Generated.targets"), content.TargetsContent, encoding);
111+
}
112+
104113
void NetStandard13()
105114
{
106115
// netstandard1.3 is a special case because it's not a single package. Instead the collection of DLLs that make

0 commit comments

Comments
 (0)