2

I tried to follow Configuring Programs for Windows XP, but I have no General option under Configuration Properties. I installed Desktop development with C++ and Windows XP support for C++.

enter image description here

2

I found a solution how to compile C# project in Visual Studio 2017 on Windows 10 for Windows XP. In VS2017 go to Solution Explorer and right click on your project. Go to properties and under Application menu choose .NET Framework 4 under Target framework. This is the lowest version you can select in VS2017 installed by default.

I thought that the latest .NET framework working on XP was 3.5. However, I was wrong. Here at Microsoft docs it says:

.NET Framework 4.0.3 The .NET Framework 4.0.3 is the latest supported .NET Framework version on Windows XP and Windows Server 2003. The .NET Framework 4.0.3 requires that the .NET Framework 4 is installed first. Both of these .NET Framework versions are no longer supported by Microsoft.

.NET Framework 4 You can install the .NET Framework 4 on Windows XP. It's no longer supported by Microsoft.

I compiled the project with .NET 4 framework and it didn't work by default on XP. It complained abount not being a valid application without offering to install newer .NET4.

After that I googled .net4 for xp and found a file dotNetFx40_Full_x86_x64.exe here. Installed it on XP machine and my project exe file worked on 32-bit XP SP3 while being compiled on Win10 VS2017 64-bit.

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Not the answer you're looking for? Browse other questions tagged or ask your own question.