Reputation: 171
Having configured a Setup project for my .NET 4.7.2 codebase the Detected Dependencies shows up with a netstandard.dll. Is there anyway to tell where this might be coming from? Again it's just an entire 4.7.2 based code with that target Framework chosen. The Prerequisites Page has the 4.7.2 chosen and the Launch condition has 4.7.2.
What could be causing the netstandard.dll to be included in the project output?
Upvotes: 0
Views: 378
Reputation: 23715
What could be causing the netstandard.dll to be included in the project output?
First, thanks to magicandre1981 for all his help.
You have referenced a net standard nuget packages in your Net Framework 4.7.2 project. And because of the special nature of the package, it needs to refer to netstandard.dll
as a runtime environment.
Although Net Frameowork 4.7.2 optimizes the build output file, so netstandard.dll
cannot be shown in the project outputpath, but in fact the project will still use it at runtime.
But for the setup project, there is no such feature. Using the netstandard nuget package, all references will be displayed in Detected Dependencies including netstandard.dll
.
In addition, Net Standard 2.0
is compatible with Net Frameowork 4.7.2
, and you can refer to this document.
Upvotes: 1