From: Mitchell Hwang Date: Wed, 6 Jan 2021 20:43:12 +0000 (-0500) Subject: [mono] Add MonoAOTCompiler MSBuild Task to produce NuPkg (#46537) X-Git-Tag: submit/tizen/20210909.063632~3911 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f6754aec0c9f2fee6be86b009c618520ee6f1357;p=platform%2Fupstream%2Fdotnet%2Fruntime.git [mono] Add MonoAOTCompiler MSBuild Task to produce NuPkg (#46537) * Test workload * Remove hardcoded path to MonoAOTCompiler Remove changes related to testing the MonoAOTCompiler NuPkg Remove changes to deprecated files that led to file additions * Inline pkg descriptions for MonoAOTCompiler Task and workload packs * Remove Workload AOT additions * Replace _ILLinkTasksDirectoryRoot with _AOTTasksDirectoryRoot * Add TargetsMobile condition * Remove temporary variables * Reword MonoAOTCompiler NuPkg description * Remove NuPkg import of MonoAOTCompiler UsingTask * Add MonoAOTCompilerTaskAssemblyPath property * Cleanup Microsoft.NET.Runtime.MonoAOTCompiler.Tasks.props * Add README.md with example of using the NuPkg * Specify the package files for the aot task, in the project itself * Add comment for GetFilesToPackage target * Update README.md Co-authored-by: Ankit Jain Co-authored-by: Steve Pfister Co-authored-by: Mitchell Hwang Co-authored-by: Ankit Jain --- diff --git a/src/mono/netcore/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/Microsoft.NET.Runtime.MonoAOTCompiler.Task.pkgproj b/src/mono/netcore/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/Microsoft.NET.Runtime.MonoAOTCompiler.Task.pkgproj new file mode 100644 index 0000000..b60e455 --- /dev/null +++ b/src/mono/netcore/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/Microsoft.NET.Runtime.MonoAOTCompiler.Task.pkgproj @@ -0,0 +1,15 @@ + + + + + Provides the MonoAOTCompiler task + + + + + + + + + + diff --git a/src/mono/netcore/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/README.md b/src/mono/netcore/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/README.md new file mode 100644 index 0000000..63c8bf4 --- /dev/null +++ b/src/mono/netcore/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/README.md @@ -0,0 +1,35 @@ +# MonoAOTCompiler MSBuild Task NuPkg +The `MonoAOTCompiler` MSBuild task is also useful outside the context of `dotnet/runtime`. The task is made available through a NuGet Package containing the `MonoAOTCompiler.dll` assembly produced from building `MonoAOTCompiler.csproj`. To use the task in a project, reference the NuGet package, with the appropriate nuget source. + +## NuGet.config +``` + + + + + + +``` + +## In the project file +``` + + + + + + + + + + + + > + + + +``` diff --git a/src/mono/netcore/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/build/Microsoft.NET.Runtime.MonoAOTCompiler.Task.props b/src/mono/netcore/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/build/Microsoft.NET.Runtime.MonoAOTCompiler.Task.props new file mode 100644 index 0000000..2732cb7 --- /dev/null +++ b/src/mono/netcore/nuget/Microsoft.NET.Runtime.MonoAOTCompiler.Task/build/Microsoft.NET.Runtime.MonoAOTCompiler.Task.props @@ -0,0 +1,5 @@ + + + $(MSBuildThisFileDirectory)..\tools\net5.0\MonoAOTCompiler.dll + + diff --git a/src/mono/netcore/nuget/mono-packages.proj b/src/mono/netcore/nuget/mono-packages.proj index 0bea763..9359f34 100644 --- a/src/mono/netcore/nuget/mono-packages.proj +++ b/src/mono/netcore/nuget/mono-packages.proj @@ -15,4 +15,8 @@ + + + + diff --git a/src/tasks/AotCompilerTask/MonoAOTCompiler.csproj b/src/tasks/AotCompilerTask/MonoAOTCompiler.csproj index 66d2cfb..82f2908 100644 --- a/src/tasks/AotCompilerTask/MonoAOTCompiler.csproj +++ b/src/tasks/AotCompilerTask/MonoAOTCompiler.csproj @@ -22,4 +22,11 @@ PreserveNewest + + + + + + +