0

I need to upgrade my framework. Following this solution with the "Replace in files command" I replaced all

targetFramework="net452" ---> targetFramework="net472" 

and that worked. But when it comes to replace

<TargetFrameworkVersion>v4.5.2</TargetFrameworkVersion> 

in *.csproj, it seems not to find anything despite having include all files and even the external ones.

enter image description here

marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459
Luca
  • 918
  • 2
  • 13
  • 30
  • How about searching for `net452`? – Clemens Nov 19 '21 at 09:58
  • It doesn't work either. And besides, the content of the csproj file is the one in the picture. It seems that VS doesn't search in those files – Luca Nov 19 '21 at 10:02
  • which VS version you have? @Luca – Vivek Nuna Nov 19 '21 at 10:04
  • 1
    Is that VS2019? I remember having had trouble with Find&Replace in "Entire solution". Try a directory path instead. – Clemens Nov 19 '21 at 10:05
  • Think there's an extension for this... I'm sure I have it installed somewhere.. – Caius Jard Nov 19 '21 at 10:07
  • VS2022. And yes I have also tried the directory path but it doesn't work. I see it takes some time for searching but the search returns 0 found items. That even if I search a simple char "a" in all .csproj files – Luca Nov 19 '21 at 10:08
  • It's called Target Framework Migrator : https://marketplace.visualstudio.com/items?itemName=PavelSamokha.TargetFrameworkMigrator – Caius Jard Nov 19 '21 at 10:09
  • Thanks I tried that already but it says it is not compatible – Luca Nov 19 '21 at 10:11
  • If you (or a colleague) has got vs2019 installed, give it a go in that. Source code is available too; can give a try at downloading it and building it for 2022. – Caius Jard Nov 19 '21 at 10:11

0 Answers0