Unwanted dependency on .NET in a deployment project after upgrading to .NET 4.5

After upgrading my machine from .NET 4.0 to 4.5, I found that my VS2010 projects now show a dependency on the .NET platform. If I continue and build the deployment project, installation will require .NET; I cannot find a way to override the automatic dependency on .NET, so the installation will work without it.

None of my projects actually use .NET . Project settings: "There is no support for the total runtime of the language", and the projects are written in their native C ++, one console application, another MFC.

If I go back to .NET 4.0, the problem will disappear and I can deploy it in an XP environment without .NET at all. Upgrade to 4.5 and the problem will return.

Dependency exclusion options do not apply to the .NET platform. Ahhhhhhh.

I am on the verge of refusing to install the shield, but I am reluctant to work before I installed .NET 4.5 (which I need for another application).

Has anyone else seen this?

+6
source share
1 answer

Looks like an error described in KB2735477 VS 2010 configuration projects depend on .NET after installing .NET 4.5 . Suggested walkaround - add

<PropertyGroup> <AddAdditionalExplicitAssemblyReferences>false</AddAdditionalExplicitAssemblyReferences> </PropertyGroup> 

to the project file, then remove .net from the launch condition view.

+4
source

Source: https://habr.com/ru/post/946496/


All Articles