Cannot run razor-page-intro sample project - asp.net-core

After I installed .Net Core preview 2 on my PC, I got the sample from Github at https://github.com/Rick-Anderson/razor-page-intro.
However, when I tried to run the sample using Visual studio 2017, I got the following error:
dependency conflict Microsoft.AspnetCore.All expected '2.0.0-preview2-25795' but received '2.0.0-preview2-final'.
Could you please suggest some ways to resolve the above issue?

I've found an answer to this:
I uninstalled my existing visual studio 2017, and reinstalled the latest preview version. After that the projects could be loaded and run.
Hope this helps someone.

Related

Android Studio 3.1.3 Update Error

I got this error when trying to update android studio 3.1.3:
Anyone know how to fix this ?
I ran into a similar error. The only solution I found was to uninstall my outdated Android Studio version (which wouldn't patch/upgrade) and then I went online and installed the latest/current Android Studio version. No patching/upgrade would go through, so I just uninstalled and reinstalled it.

Package [some package] is not compatible with netcoreapp

I recently installed Visual Studio 2017. I migrated the existing project which created in Visual Studio 2015. It got migrated without any errors. But when I build the solution I get 100+ errors stating Package [Microsoft.AspNetCore...] is not compatible with [netcoreapp...]
There are more than 100 items listed like this. I tried
renaming the sdk value in global.json
removing sdk value in global.json
repair, uninstall & reinstalling Visual Studio 2017. But none of them work.
I'm not sure where to add net451 in imports as explained here because the project.json file is deleted while migration.
The same project was working fine in Visual Studio 2015. All issues started after migrating to Visual Studio 2017.
Please let me know how to fix this error.
Due to your last comment I believe your problem is with the Nuget cache. I've seen this before where Nuget is pulling older packages after updating to .NET Core Tooling RTM and or VS 2017. To fix this run dotnet nuget locals --clear all. Then try creating a new .NET Core project.
You have to do this solution
open menu>project>'your project name'proprties...
in the opened window Application Tab change 'Target Framework' combo to '.Net Core 2.0'
now close the window and update again
enjoy it:)
If you are coming here after VStudio 2019 and you can't install the upgrade-assistant to get you to .net 5, upgrade your Visual Studio to 16.9+

msbuild this application couldn't be started

i've got computer with Windows 8 and fresh installation of Visual Studio 13 Express.
I'm working on project which runs on .NET 4.0 Client profile.
Problem is when i try to complile, this error message is shown:
Solutions:
social.msdn : This one says:
try to restart your VS and rebuild - not working
check MSbuild from promt - not working (Message is shown twice)
I also checked project configuration vsproj and tried to make sample project
Reinstall framework:
i tried ot reinstall almost everything, framework, sdk.
when i've installed .NET Framerork v4.5.2 my VS was unnable to start and anoter .NET apps complied before had missing library
I haven't tried to reinstall VS, yet. (But i dont think if it helps)
Edit: Temporary solution shoud be Visual Studio Express 2012, but it not solves problem.
Reinstalaion of VS didn't help.

Visual studio 2013, can't open or create projects

I tried getting Visual Studio 2013 to work today but i couldn't get it to work. This is the error I keep getting when making a c++ window application.
The error message I keep getting:
I tried opening the vcxproj file in the message box, but I couldn't open that either. In fact I am unable to open any vcxproject's. This problem happens with pretty much all languages.
I uninstalled vs 2012 and 2010, and then installed vs2013.
I have tried :
reinstalling the nuget extension.
Reinstalling vs2013 a bunch of time and trying to repair the
installation
Uninstalling all traces of vs2010 and vs2012
one thing that might be important is that I used the november CTP c++ preview compiler for vs2012. I can't seem to uninstall it though
but nothing helped so far. Anybody able to help me?
I decided to bite the bullet and re-install windows 7. Everything works again. In the future I will probably avoid downloading CTP's though or be very careful about uninstalling them.
This happened to me when I installed .NET framework 3.5 manually to install "SQL Server Management Studio" as I recall, Then I found that v. 3.5 is incompatible with VS 2013 as this page mentioned:
VS 2013 Comparability
after I turned the related feature off, The problem with creating c++ projects disappeared ..

Silverlight version mismatch

I just found out that LightSwitch 2011 is out. I tried to install it and found out that Visual Studio 2010 Ultimate Service Pack 1 is a pre-requisite. I installed the Service Pack and then it allowed me to install LightSwitch 2011. All well and good.
Now when I start a new LightSwitch project, it gives me an error that "Unable to find a version of silverlight development runtime installed. Please install the silverlight development runtime." and then there's the link. I click on the link, install whatever is required and the installation fails.
After trying a couple of options I got the response from MSDN Forums that I should uninstall everything and re-install. Tried that. Same error again.
Another response on msdn forums says that my silverlight runtime and developer package must match. I check and find out that they are different versions
Developer Package: 4.0.60129.0
Microsoft Silverlight: 4.0.51204.0
That's what's causing the problem. How can I upgrade both to the latest version and make them match?
I know this is an old post but I had exactly the same problems (12 months later!). What fixed it for me was quite simple.
Instead of following the error prompt to download the latest version of Lightswitch go directly to http://www.silverlight.net/downloads and install Silverlight 5 Developer Runtime for Windows (either 64 or 32 bit).
Hope this helps!
I deleted all entries of "silverlight" from the registry manually. It was a long and painful process. It still didn't work.
I had to reinstall Windows.
It finally works now. I was able to install the latest version of silverlight and work on LightSwitch 2011 finally.