Skip to content
Open
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
Original file line number Diff line number Diff line change
Expand Up @@ -264,9 +264,6 @@ private bool ExecuteGenerateTemporaryTargetAssemblyWithPackageReferenceSupport()
// Add Analyzers to Analyzer item list.
AddNewItems(xmlProjectDoc, AnalyzerTypeName, Analyzers);

// Replace implicit SDK imports with explicit SDK imports
ReplaceImplicitImports(xmlProjectDoc);

// Add properties required for temporary assembly compilation
var properties = new List<(string PropertyName, string PropertyValue)>
{
Expand All @@ -283,6 +280,10 @@ private bool ExecuteGenerateTemporaryTargetAssemblyWithPackageReferenceSupport()

AddNewProperties(xmlProjectDoc, properties);

// Replace implicit SDK imports with explicit SDK imports
// In this temorary project file, the SDK import must be inserted before the added PropertyGroup.
ReplaceImplicitImports(xmlProjectDoc);

// Save the xmlDocument content into the temporary project file.
xmlProjectDoc.Save(TemporaryTargetAssemblyProjectName);

Expand Down