"Errors" upgrading from VS2010 to VS2012 - wpf

We have an WPF application developed on Visual Studio 2010 and I've been tasked with upgrading it to VS 2012. It compiles fine in VS2010 and doesn't prompt to upgrade after opening the solution file with VS2012 (Update 3). It also compiles fine in VS2012. However, I get errors in the in-editor Error List even though it compiles and runs without complaint.
These errors are all of the type "Could not find file 'C:\project\src\ui\images\foo.png'" The files don't exist in 'C:\project\src\ui\images\' but rather in 'C:\project\assets\images\' - in the csproj file, we add the images with the following lines (same in both 2010 and 2012):
<Resource Include="..\assets\images\foo.png">
<Link>ui\images\foo.png</Link>
</Resource>
My first guess is that 2012 is defaulting to a different URI path than 2010, but I haven't found any documentation about any such change.
The phantom errors show up whether 2012 is targeting the 4.0 or the 4.5 framework.

Have you upgraded your VS 2010 to have VS 2010 SP1 installed and rebuild your project before upgrading to VS 2012?
Some incompatibilities problems may occur in upgrading VS 2010 project to VS 2012 project if you haven't upgraded your VS 2010 to VS 2010 SP1.

Related

Installing SQL Server 2017 Developer Edition: How to repair the visual studio runtime (library) 'Microsoft Visual C++ 2019 X64 Minimum Runtime'?

I have a fully updated Visual Studio Professional 2017 installed, and I am now trying to install SQL Server 2017 Developer Edition, but receive the following error message (translated to English by me) and the installation of the SQL server aborts:
The Visual Studio-Runtime Microsoft "Visual C++ 2019 X64 Minimum Runtime - 14.22.27821" has to be repaired.
The error message points me to a guide how to repair or remove programs, so I tried reinstalling SQL Server 2017 and Visual Studio, but both does not help, the error persists.
Is there anything else I could try to fix that broken runtime library? Does it matter that I also have/had the community version of Visual Studio Code installed?
I am not exactly sure what exactly solved my problem, what I tried doing is the following
Under Apps & features within the Windows Settings, I "repaired" all apps with a similar name to the error message, i.e. everything of the kind Microsoft Visual C++ 20xx Redistributable (x86) with xxbeing a 2-digit year, or a year range such as 15-2019.
Deinstalled the Visual Studio Community Edition.
Reboot the system multiple times afterwards and inbetween.
Point 2 might have just cargo cult to ease my mind, but all of this did not solve the issue yet.
Eventually I decided to install SQL Server 2017 Express rather than SQL Server 2017 Developer which miraculously worked. I can not rule out that my IT department solved it by obtaining additional licenses, since I am not able to figure out the exact time when the new keys got active.
I also ran into this problem.
I just updated my version of Visual Studio 2017 Community edition using the Visual Studio Installer and the issue went away.

SQL Server Management Studio (SSMS) 2014 System.EnterpriseServices.Wrapper.dll Error

SSMS 2014 SP1 recently started throwing an error around a mismatch of the System.EnterpriseServices.Wrapper.dll when trying to connect to any database.
I had recently installed LinqPad 5 which required installing.Net 4.6.
Trying to repair SSMS did not fix the issue. Various resources online, suggesting updating the GAC and C:\Windows\winsxs\x86_System.EnterpriseServices_b03f5f7f11d50a3a_2.0.0.0_x-ww_7d5f3790 assemblies from the .Net 2.0 folder and the also did not fix the issue.
This was my solution to get my dev environment back to working as normal. Obviously it isn't ideal, so if anyone has a better solution, please share.
As an interim measure:
Uninstall .Net 4.6 from Add/Remove Programs
Reinstall .Net 4.5.1
from: https://msdn.microsoft.com/en-us/vstudio/hh487283.aspx
Restart SSMS, possibly you may need to restart your computer
If you subsequently recieve an error in Visual Studio:
Open the VS developer command prompt (C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\Tools\Shortcuts for Visual Studio 2013)
Run devenv /setup
Alternatively you could run a repair from the VS installer
I believe this is because .Net 4.6 overwrites the files in the C:\Windows\Microsoft.NET\Framework\v4.0.30319 folder, as .Net 4.x all share this folder, SSMS doesn't seem to be able to handle the updgrade. .Net 2.0 uses a different folder, hence why alot of the solutions around presumably didn't help.

Visual Studio 2013 Build Error: Incompatible versions of SQL Server Data Tools and database runtime components are installed on this computer

I have Visual Studio 2012 and Visual Studio 2013 installed on my development machine. My SQL projects were created with VS2013 and they compile fine from Visual Studio, but they fail with the following message when I use MSBuild from the command line:
Build Error: Incompatible versions of SQL Server Data Tools and
database runtime components are installed on this computer.
Note: This same error was encountered by other developers in Visual Studio 2012. See This SO question. I have verified that my versions of SSDT are up to date. I am not dealing with the same problem.
To resolve this issue you have to make sure you are using MSBuild 12.0 which comes with Visual Studio 2013 not MSBuild 4.0 which ships with the .Net 4.0 framework.
Make sure your path does not include the .Net 4.0 framework and then add MSBuild 12.0 to your path like this:
SET PATH=%PATH%;"%ProgramFiles(x86)%\MSBuild\12.0\Bin"
Another solution is to set the VisualStudioVersion property to 12.0 like this
MSBuild.exe My.sqlproj /p:VisualStudioVersion=12.0
Note: This same error message has appeared in many different versions of SSDT. This fix is specific to Visual Studio 2013

Cannot open .csproj-file with Visual Studio C# 2010 Express

I'm trying to open this project (https://github.com/shtejv/ARDrone-Control-.NET) downloaded from the internet but just when I open the project this error appears: "The project type is not supported by this installation."
It also shows the solution corresponding to that project as unavailable.
What can I do? maybe should I download a newer version of Visual Studio?
EDIT: The project that is causing the fail is called ARDrone_Testing so maybe it's a unit testing project so I'll need the full version of VisualStudio2010. I read it in this post!
SOLUTION: It finally works properly, I've just finished installing vs2013 professional and open the project without any problem!
Thank you all!
I'm looking at the .sln file and it is created with Visual Studio 2010:
Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
What project is failing? (the name of the project)
Additional dependencies like DirectX shouldn't affect the project loading.

silverlight4 tools for visual studio 2010 fails with the following error... HELP!

I am trying to migrate my silverlight applications from version 3 to version 4. I've been running into this problem. when i try to install silverlight4 tools for visual studio 2010
Visual Studio 2010 or Visual Web Developer Express 2010 or Visual Phone Developer Express 2010 that matches the language version of Silverlight Tools 4 must be installed before installation of Silverlight Tools can continue. Silverlight Tools is available in other languages at http://go.microsoft.com/fwlink/?LinkId=177432.
I have installed
microsoft visual studio 2010 professional
version 10.0.30319.1.RTMRel
Microsoft .net framework
version 4.0.30319 RTMRel
please help!!!!!
Silverlight tools 4 is available in English, French, German and Japanese. You need to have downloaded the correct language version of the Silverlight Tools (note the language combobox).
If your version of Studio is installed for another language then you could try installing the English Visual Web Developer Express 2010 (it should install fine side-by-side with your standard product) then installing the Tools. I'm not sure that will get you completely to where you'd want to be as far as templates are concerned but it should get you going.
How to determine what failed
If you use the Web Platform Installer to install, it tells you in the log file what happened.
IronSpigot::Main::LogPackageNameAndVersion(): Package Name = Silverlight 4 Tools for Visual Studio 2010
IronSpigot::Main::LogPackageNameAndVersion(): Package Version = 10.0.30319 1033
It will compare these against the values in the following two registry keys:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\10.0\Setup\VS\BuildNumber\1033
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\10.0\General\UILanguage
If you have VS.NET 2010 SP1 for en-us, the first will contain '10.0.40219' and the second 1033.
The setup confusingly reports this as a language issue, but if you read carefully it is a language and version issue.
Here's how to work around the version check:
Using regedit, change the first key to 10.0.30319. Run the setup.
Using regedit, change the first key back to 10.0.40219
I recommend reapplying SP1 to be safe, but I'm not sure if it is required.
This other answer has a longer solution which is to uninstall SP1, install the tools, then reinstall SP1.
coudn't find the soulution.
however my issue resolved when i installed the same build version of Visual Studio Premium version.

Resources