Skip to content
Merged
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
6 changes: 4 additions & 2 deletions src/SmallSharp/EmitTargets.cs
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,10 @@ public override bool Execute()

WriteXml(TargetsFile, new XElement("Project",
new XElement("PropertyGroup", properties),
// don't emit package references in SDK mode, since we'll add them from the SDK targets.
UsingSDK ? new XElement("ItemGroup") : new XElement("ItemGroup", items)
// We emit the package references always, even if UsingSDK is true, because
// this works better with the background restore that VS does, and nuget
// deduplicates package references anyway.
new XElement("ItemGroup", items)
));

WriteXml(Path.Combine(BaseIntermediateOutputPath, "SmallSharp.sdk.props"), new XElement("Project",
Expand Down