0

I made a new project template and I do see a usage of $targetframeworkversion$ all around the code. The thing I can't find is where this value is being set and how to change it?

Thanks

MaiOM
  • 916
  • 2
  • 13
  • 28
  • 1
    Inside the Visual Studio project system. You can't see it, only the end result. Replaced by the .NET Framework combobox value shown at the top of the "New Project" dialog. Avoid asking an XY question. – Hans Passant Nov 18 '14 at 10:55
  • I'm currently getting in the wizard in the replacment dictonary the 4.5 as value. I need to update it do 4.5.1. Where and how should I alter this value? What is an XY question? – MaiOM Nov 18 '14 at 13:45
  • @MaiOM I'm seeing the same thing. I'm using Visual Studio 2019. The Add Project dialog no longer has a drop down list for the target framework. Evidently, this value defaults to v4.5. Not sure why as I have older and newer frameworks installed. – SteveB Mar 03 '22 at 22:14

1 Answers1

0

I found the answer. It is set in the new project window, on the project creation.

Check this image:

enter image description here

Choosing the value in the combo box will influence the $targetframeworkversion$.

Hope it helps

Cheers

MaiOM
  • 916
  • 2
  • 13
  • 28