.Net Framework Developer Pack install and warnings when opening a solution

Completed

I've got a solution originally developed under VS2013 which targets .NET Framework 4.0 because it must run on XP machines as well as w7, w8, and w10.  When I open the solution in Rider, I get this warning:

.NET Framework Not Installed: Download and install .NET Framework 4 Developer Pack

So I downloaded and ran the installer but got a microsoft message that said 4.0 was already part of the OS (I'm running w10).

Microsoft .NET Framework 4 is already a part of this operating system. You do not need to install the .NET Framework 4 redistributable. <A HREF="http://go.microsoft.com/fwlink/?LinkId=164207">More information</A>.

Same or higher version of .NET Framework 4 has already been installed on this computer.

So I went ahead and built the solution and ran the exe on w10, w7 32 bit, and XP and it seems to run fine.  Is the Rider warning a known issue?  I notice when I create a new C# solution in Rider, it will not show .Net 4.0 as a selectable target framework, so it seems that my workaround would be to create the solution in VS 2013 and then continue the development in Rider?

 

10 comments
Comment actions Permalink

Hello Dave!

Thank you for the question.

It seems to be similar to the following issue https://youtrack.jetbrains.com/issue/RIDER-18839.

Could you please clarify the project type you use and share a screenshot of "File | Settings | Build, Execution, Deployment | Toolset and Build?"

 

Regards,

Sofya

0
Comment actions Permalink

 

Hi  Sonya,  my project type is Windows Application.  I'm a very new user for Rider, so there's a lot of settings that I'm not familiar with yet.

 

0
Comment actions Permalink

Thanks

Could you please try to select MSBuild from the framework. For example, in my case it is located in  C:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe

 

0
Comment actions Permalink

OK, selected the 4.0 and saved it (had the same location as yours), but the project properties application drop down for framework still doesn't show 4.0.  I get .Net Framework v4.5.2 and 4.7.2 as options in the drop down.

 

0
Comment actions Permalink

Hello Dave!

Could you please clarify the type of project you try to create (a screenshot would be appreciated)?

 

Sofia.

0
Comment actions Permalink

Hi Sofia, it's a windows form project. I created it originally Visual Studio 2013 (running on a W7 64 bit machine), and we used .net framework 4.0 so it would be compatible with XP os.  I recently had to get a new  machine (Windows 10) and decided to try Rider as an IDE instead of Visual Studio.

0
Comment actions Permalink

Hello Dave!

Thank you for the screenshot. I finally understood what's the problem might be.

Could you please check the content of C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework directory?

It seems that there is no Developer Pack installed on your machine, is there?

 

PS: this article might be useful.

 

Sofya

 

0
Comment actions Permalink

I've got folders in there for v4.5.2 and v4.7.1, so I think  those are installed, but I'll go through the article and see what I can try.  

0
Comment actions Permalink

Well, as for the .net framework v4.0, I've copied that over from another older machine (running w7 64) and now it shows up in the target framework dropdown in the project properties window, so I'll see if that solves that issue. 

0
Comment actions Permalink

It built fine with v4.0 selected and ran on an XP machine.  Sofia, thanks for all your help.

0

Please sign in to leave a comment.