.NET version in Visual Studio - c#

What is the difference between .NET Framework Version
4.6.01038
and
4.6.01055
Both VS installs have Update 3, first one is Windows 10, second one is Windows 7. I assume both refer to .NET 4.6.1 but why is there a version difference?
There are also differences in C# and F# keys, AA015 and AA499.

I believe that comes from the version installed on your machine. On my computer, the .Net version displayed in the Visual Studio about box matches the version displayed in Control Panel >> Programs and Features.
You can also check your Windows registry to confirm the installed version:
https://support.microsoft.com/en-us/kb/318785
In your case, my guess is you have a later revision of 4.6 installed (01055) on your Windows 7 OS than the one on your Windows 10 OS (01038).
As far as your Visual Studio keys, I think when you activate Visual Studio on a machine it generates a specific key tied to your particular system. Not super familiar in that department though so maybe someone else can elaborate on that. Hope this helps! :)

Related

Migrating from Win7 to Win10 - will my C# projects work?

I plan to install Windows 10 instead of Windows 7. But I'm a bit scary about it. Does my old projects from Visual Studio 2010 Ultimate will work?
I've got few apps in C# .Net Framework 3.5 which I have to maintain and I'm not sure, whether newest visual studio on Windows 10 will work correctly with such old framework. If so, should I install same VS as before, or newest one?

Upgrading C# project from VS 2010 to 2013; need to make it work for Windows 8 and 10

I inherited a C# app written in Visual Studio 2010 professional. From the compile done in VS 2010, the C# app works perfectly in Windows XP and Windows 7.
Now I am about to install Visual Studio 2013 for the first time tomorrow, and load the C# app.
I have 2 immediate goals:
Upgrade my project to work in VS 2013 Professional. I am not sure
if/what obstacles I may run into here, but if anyone has any suggestions I am all ears.
More importantly, I have 2 new prospective users for my app - one wants to use it in Windows 10, the other in Windows 8. However, I don't know the steps I
have to take to make my C# app work for these newer operating
systems. Are there specific steps I will have to take (or settings to
assign) in Visual Studio 2013 so that my C# app will work for Windows
8 and Windows 10? If someone knows the answer to this, can you please
make it clear whether I should be making separate builds for each
target operating system, or if the steps you suggest will allow me to
build this for all 4 operating systems included in the same build?
Thanks very much, really appreciate any input.
Adam
For the most part the project should auto update just fine. You might want to make a back up incase it upgrades incorrectly and it doesn't create a back up on its own.
The boxes you deploy to might need a visual studio 2013 redistributable which will be apparent if they crash when opening on the deployment machine

What version of Visual Studio to target windows XP builds?

I want to develop a business application using WPF/C# .NET. The application will have lots of modern gui widgets and functionality such as dockable views and a ribbon. The application should also run on Windows XP as well as Windows 7 and 8.
What Visual studio .NET version should I use? I've heard that in VS 2012/2013 you can't target xp. Is that the case?
Use Visual Studio 2013 and develop on a Windows 7/8 system.
You can target XP easily by just changing the .NET framework from 4.5 to 4.0
UPDATE: As #hvd has stated in the comments, be sure you test your product on an XP machine (or on a machine that has only .NET 4.0)
http://news.kynosarges.org/2012/08/01/no-net-4-5-for-xp2003/
Its more of .Net framework and not IDE specific.
.Net 4.5 framework cannot be installed on XP machines. So if you are talking about development machines, its true you can't go with VS 2012/2013 since 4.5 in installed by default with them.
But if you are talking about customer machines here, you can use Windows 7/8 for development with 2012/2013 IDE but project should target .Net 4.0 framework or below.
I think Visual Studio 2013 natively supports .Net v4.5, which does not support Windows XP. Even VS2012 requires Windows 7.
And if you want to target XP then you can switch the .NET version to 4.0. So its about the framework rather than IDE
If you want a XP support on Visual Studio then you have to use the Visual Studio 2010 version.

Problems installing Windows SDK 7.1 for dot.net Framework 4.0 / 2 Problems in 1

Since yesterday I try to install Windows SDK 7.1 for dot.net Framework 4.0 on my windows 7 x64
machine. I get everytime the same Error during the installation.
Error message:
"Installation of the "Microsoft WIndows SDK for Windows 7" product has reported the
following error: Please refer to Samples\Setup\HTML\ConfigDetails.htm document for further information"
Thats a pretty unhelpful error message, so I browsed the www about more information and did the suggested steps peoples recommend.
I opened the View Log and get the same return error like others.
"C:\Program Files\Microsoft SDKs\Windows\v7.1\Setup\SFX\vcredist_x86.exe installation failed with the return code 5100"
I tried all that stuff that Microsoft, MSDN and others recommended but nothing works for me.
Stuff i tried to resolve the problem:
Deinstallation of the Document Explorer (recommended by msdn)
Deinstallation of the lastest Microsoft Visual C++ 2010 Redist x64/x86 Versions (microsoft)
Deinstallation of Microsoft Windows SDK Windows 7 (dot.net 3.5)
Installation of Microsoft Windows SDK 8
but like i said nothing helps :/ I get everytime the same Error message during the Installation.
other facts about my system:
I have a lot of several Microsoft Visual C++ 2008 Redist versions on my system
Microsoft Visual C++ Compilers 2008 Standard Edition enu x64/x86
Microsoft Windows SDK for Visual Studio 2008
Background info:
I installed Jenkins as Service on my machine Windows 7 x64. We did a changeover from dot.net Framework 3.5 to dot.net Framework 4.0.
But the problem was that sgen.exe sends an error:
"SGEN : error : An attempt was made to load an assembly with an incorrect format.." (to find in build log).
Windows SDKs containing the sgen.exe in their bin folders like "C:\Program Files\Microsofft SDKs\Windows\v7.0\Bin".
So I thought the SDK is out of date (v7.0a) and i tried to install the Windows SDK v7.1 for dot.net Framework 4.0.
May installing the latest Visual Studio version on my system could help to resolve the problem, because it should simultaneously install Windows SDKs.
But i wouldn't like to install Visual Studio on it to prevent wasting a license because nobody works on this computer.
Solving the Problem by installing .Net 4.5 and SDK 7.0.
Additionally set SdkToolsPath to $(TargetFrameworkSDKToolsDirectory) (find in WINDOWSDIR\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets)
... all in all a strange stituation with the SDK. Leaves a bad feeling.
I had the same problem installing the windows SDK 7.1, vcredist_x86 installation failed although when i looked at the unistall a program tab of the control panel no VC 2010 x86 redist was installed. I also had the windows 7.0 SDK installed. It turns out, there is a registry key describing if and which version of the vc 210 x86 redist is installed:
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x86
The key is Installed
Mine was at 1 even if the uninstall tab did not show it, i set it to 0 it did not solve the problem, but deleting the whole
HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0\VC\VCRedist\x86
did.
Hope it helps, I recommend you backup your registry before doing that.
I find it deeply astonishing that Microsoft would release a SDK with such a problem.

Using visual studio for developing mono applications

How do I use Visual Studio to develop applications on Mono? Is this possible?
You just build the applications in Visual Studio, and run them under Mono instead of under .NET. The binaries should be compatible... but you'll need to make sure you don't use any libraries which aren't available in Mono - see the Mono Application Compatibility Guidelines.
(According to that page, you need to turn off incremental builds in Visual Studio though - a point I wasn't aware of before :)
See this article on how to run your apps while targeting the mono framework from VS.
Miguel has posted this entry a while ago, so it's quite dated. You can also try this and this (all hail Web Archive!)
Since version 2.0 MonoDevelop supports VisualStudio project/solutions file format. This means that you can use the same code base on Windows with VS and .Net and on Linux with MonoDevelop and Mono. That in my opinion is the best way to go about it. There are no major reasons to run application in Mono on Windows, other than for testing purposes and for that I'd rather set up a virtual machine to test the software in native environment.
I've posted an article on how to integrate Mono 2.8 (the build for .Net 4.0) into Visual Studio 2010 here - there's a link there to another profile built for Mono 2.4 (.Net 3.5) if that's what you're aiming for.
You can integrate the new Mono 2.8 profile with 3 simple steps:
Download the profile itself from here.
Unzip the contents of the profile Zip to one of the following directories:
32-bit systems: C:\Program Files\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile
64-bit systems: C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0\Profile
The "Mono" folder in the ZIP should be directly under the "Profile" directory.
Restart Visual Studio if it had been running, open the properties of the project you want to use with Mono, and select the Mono Profile for 2.8:
Note: You will not be able to select the Mono Profile straight from the New Project dialog box; for some reason, that list of profiles doesn't match. Create your project as a .Net Framework 4.0 project first, and after creation set the project properties to Mono.
If you've upgraded your MonoDevelop install to the latest version (as of today, anyway), this Visual Studio solution & Project file will open with no problem - no changes required at all.
If you encounter the problem that you need .NETFramework,Version=v4.0,Profile=Mono in order to run the application, the trick was to create registry key.
For running Windows 7 x64, it was: HKEY\_LOCAL\_MACHINESOFTWAREWow6432NodeMicrosoft .NETFrameworkv4.0.30319SKUs .NETFramework,Version=v4.0,Profile=Mono
I suppose for x86 it’s HKEY\_LOCAL\_MACHINESOFTWAREMicrosoft.NETFramework v4.0.30319SKUs.NETFramework,Version=v4.0,Profile=Mono
(Where v4.0.30319 would be the version of the current 4.0 framework installed.)
Yes, you can develop on Visual Studio and target Mono (Mono for x86).
Here is an answer I made on all the available possible alternative to compile against Mono on Windows. However, it's focused for Mono x86.
As a summary, let's list the possible choice for VS development:
MonoHelper addin
Mono Profile
For Android/Ios, you can also cross-compile and debug inside Visual Studio with Xamarin addin. Although it's not free for commercial huge applications, there a free version available to make small ones.
Note: For those who wonder why in the world I would like to develop in Visual Studio on Windows, instead of MonoDevelop on Unix, let say that developer experience in MonoDevelop does not compare to VS one (especially when it comes to debugger/refactoring, the last due more to Resharper than to VS itself).

Categories