Asked by:
Problem when i try to open the project with VS

Question
-
User-1004886483 posted
Hi,
i have an old surce which was deployed with visual studio 2008 (C#, Any CPU , x64)
I tryed to open this project with visual studio 2017 and when i do GENERATE, i get this error..
I would love to have some help to fix this :
- Impossible de récupérer les sorties de la tâche "GenerateResource" à partir du paramètre "FilesWritten". L'objet ne correspond pas au type cible
- Impossible d'exécuter la tâche "GenerateResource", car MSBuild n'a pas pu créer ou se connecter à un hôte de tâche avec le runtime "CLR2" et l'architecture "x86". Vérifiez que (1) le runtime et/ou l'architecture nécessaire sont disponibles sur la machine, et que (2) le fichier exécutable "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuildTaskHost.exe" obligatoire existe et peut être exécuté.
What does it mean? and how to fix?
Tuesday, January 16, 2018 9:55 AM
All replies
-
User283571144 posted
Hi devquestionsanswers,
I would love to have some help to fix this :
- Impossible de récupérer les sorties de la tâche "GenerateResource" à partir du paramètre "FilesWritten". L'objet ne correspond pas au type cible
- Impossible d'exécuter la tâche "GenerateResource", car MSBuild n'a pas pu créer ou se connecter à un hôte de tâche avec le runtime "CLR2" et l'architecture "x86". Vérifiez que (1) le runtime et/ou l'architecture nécessaire sont disponibles sur la machine, et que (2) le fichier exécutable "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuildTaskHost.exe" obligatoire existe et peut être exécuté.
What does it mean? and how to fix?
According to your description, I suggest you could try below way to solve this issue.
You could open your csproj file and add the following line under the default property group.
<PropertyGroup> <DisableOutOfProcTaskHost>true</DisableOutOfProcTaskHost> </PropertyGroup>
Best Regards,
Brando
Wednesday, January 17, 2018 2:52 AM -
User-1004886483 posted
Hi, i have the same error for 2 of the projects of my solution..
My solutions has many projects
MUPROG.Batch MUPROG.Common MUPROG.DAL MUPROG.Domaine MUPROG.Services MUPROGWebsite (Project principal)
But only those have this error :
MUPROG.Common MUPROG.Services
Why? and how to fix?
another working solution?
Wednesday, January 24, 2018 3:16 PM -
User283571144 posted
Hi devquestionsanswers,
Could you please tell me the .net framework version of the MUPROG.Common and MUPROG.Services project?
It seems missing runtime environment.
Best Regards,
Brando
Friday, January 26, 2018 5:08 AM -
User-1004886483 posted
Hi, it si the 3.5 i suppose.. otherwise how to chek?
thanks
Thursday, February 8, 2018 1:04 PM -
User753101303 posted
Hi,
According to https://docs.microsoft.com/en-us/dotnet/standard/clr#versions-of-the-common-language-runtime it is correct ie CLR2 was for 2.0 to 3.5. You should see that as well in the web.config file and/or in the project properties.
You may need to install .NET 3.5 if you still want to target this particular version and the OS doesn't include this version by default (it is usually an additional Windows component).
Friday, February 9, 2018 6:06 PM