Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NuGet.Config
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@
<clear />
<packageSource key="dotnet-public">
<package pattern="AwesomeAssertions" />
<package pattern="Microsoft.DotNet.ILCompiler" />
<package pattern="Azure.Core " />
<package pattern="ben.demystifier" />
<package pattern="castle.core" />
Expand Down
17 changes: 17 additions & 0 deletions eng/pipelines/pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -284,3 +284,20 @@ stages:
displayName: Log Environment Variables
- script: dotnet format whitespace --verify-no-changes NuGet.sln
displayName: Run dotnet format whitespace

- stage:
displayName: AOT Compatibility
dependsOn: []
jobs:
- job:
displayName: AOT Publish Smoke Test (win-x64)
timeoutInMinutes: 20
pool:
vmImage: windows-latest
steps:
- task: PowerShell@2
displayName: Run configure.ps1
inputs:
filePath: configure.ps1
- script: dotnet publish test/NuGet.AotCompatibility.Test/NuGet.AotCompatibility.Test.csproj -r win-x64 -c Release
displayName: AOT publish NuGet libraries
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<Project Sdk="Microsoft.NET.Sdk">
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

New project in the repo, should it be added to NuGet.sln and some of the slnf files?

Before we started running CI on dnceng-public, I had a script in our pipeline to make sure that all csproj files on disk were also in the sln. But it looks like it was lost during the migration.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Intentionally left out. It is a standalone smoke-test executable it exists only to verify that the NuGetCore AOT compilation works. It has no library consumers and is not part of the normal build or test. Adding it to the solution would pull it into every build without any benefit. Please let me know if there is a reason, we want it there?

<PropertyGroup>
<TargetFramework>$(LatestNETCoreTargetFramework)</TargetFramework>
<PublishAot>true</PublishAot>
<IlcTreatWarningsAsErrors>true</IlcTreatWarningsAsErrors>
<PackProject>false</PackProject>
<UsePublicApiAnalyzer>false</UsePublicApiAnalyzer>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.Commands\NuGet.Commands.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.Common\NuGet.Common.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.Configuration\NuGet.Configuration.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.Credentials\NuGet.Credentials.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.DependencyResolver.Core\NuGet.DependencyResolver.Core.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.Frameworks\NuGet.Frameworks.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.LibraryModel\NuGet.LibraryModel.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.Packaging\NuGet.Packaging.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.ProjectModel\NuGet.ProjectModel.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.Protocol\NuGet.Protocol.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.Resolver\NuGet.Resolver.csproj" />
<ProjectReference Include="..\..\src\NuGet.Core\NuGet.Versioning\NuGet.Versioning.csproj" />
</ItemGroup>

<!-- Root all public types so ILC analyzes the full public API surface of each library. -->
<ItemGroup>
<TrimmerRootAssembly Include="NuGet.Commands" />
<TrimmerRootAssembly Include="NuGet.Common" />
<TrimmerRootAssembly Include="NuGet.Configuration" />
<TrimmerRootAssembly Include="NuGet.Credentials" />
<TrimmerRootAssembly Include="NuGet.DependencyResolver.Core" />
<TrimmerRootAssembly Include="NuGet.Frameworks" />
<TrimmerRootAssembly Include="NuGet.LibraryModel" />
<TrimmerRootAssembly Include="NuGet.Packaging" />
<TrimmerRootAssembly Include="NuGet.ProjectModel" />
<TrimmerRootAssembly Include="NuGet.Protocol" />
<TrimmerRootAssembly Include="NuGet.Resolver" />
<TrimmerRootAssembly Include="NuGet.Versioning" />
</ItemGroup>
</Project>
Loading