Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio creates empty TargetFrameworkProfile in csproj when changing .NET versions

I'm using Visual Studio 2019. When I change the .NET Framework version of a project, either upgrading or downgrading, Visual Studio automatically creates this in the XML of the csproj file:

<TargetFrameworkProfile />

What does this mean? Does it do anything? If I erase it, the project still runs fine as far as I can tell. Why does Visual Studio create this?

like image 988
Aaron Franke Avatar asked Mar 17 '26 22:03

Aaron Franke


1 Answers

This setting is only applies to portable class libraries (Cross-platform).

Portable class libraries - https://learn.microsoft.com/en-us/previous-versions/dotnet/framework/cross-platform/portable-class-library

like image 169
Roshan Birar Avatar answered Mar 19 '26 13:03

Roshan Birar



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!