Error when creating ASP.NET MVC 3 project with xUnit: xunit.targets not found - visual-studio-2010

I create an ASP.NET MVC 3 project and a unit test project using xUnit.net.
new project http://img841.imageshack.us/img841/38/newprojectsnt.png
But I got an error like this, and the unit test project is not created.
error http://img15.imageshack.us/img15/4725/errordp.png
Does anyone know how to fix it? I'm using Visual Studio 2010 Professional SP1, on Windows 8 Release Preview.
Thanks.

I had the same problem while using version 1.9.1 (Jul 4 2012 release). I uninstalled it and installed the version 1.9 (Jul 4 2012 release)and now it is working fine. I'm using Visual Studio 2010 Ultimate SP1 and Windows 7 Ultimate with SP1.

Sorry about this bug. We're planning to remove template support from 2.0 anyway, so this bug is going to go away.
Moving forward, we recommend people just create class libraries, and bring in xunit.dll via NuGet.

Related

Have upgrade a VS 2010 solution to VS 2019 over the years but need to get c#5 to upgrade to c#9

I have a working solution that started as a visual studio forms web project and solution using 2010 version. I have progressed over the years to VS 2019 and I'm using the latest framework of 4.8.
However, my C# version is 5. I need to upgrade to C# 9 but it is not an option I can find in the project properties window. I would be grateful for some help.
I did try creating a blank solution in VS2019 and importing all the files. I did gain a project window with options I have not seen due to the newer project or solution version. I had 700 or so, errors on build and gave up. Perhaps if I had persevered.

Can I work on MVC 4 using Visual Studio 15 Preview?

Can I work on old ASP.NET MVC 4 projects using Visual Studio 15 Preview? If so, would VS 15 update the project/project file?
I don't want to mess up my old projects by opening them in VS 15.
At least you cannot do so in Visual Studio 2017 RC, but Microsoft seems to indicate the RTM release will support MVC 4,
https://www.visualstudio.com/en-us/news/releasenotes/vs2017-relnotes
MVC 4 Projects are not supported
Issue:
Open MVC 4 project using Visual Studio 2017 RC prompts to Install
Missing Features - .NET Desktop Development, which is incorrect. Even
after you install the missing features, project does not load in
Solution Explorer and shows up as incompatible.
Workaround:
No workaround, support will be added in the future.
But you should consider seriously about upgrading to MVC 5, as Microsoft technical support team should requires that based on the support policies,
https://www.asp.net/support

ASP.Net 5 Beta 8 xproj cannot be opened

I just installed the new release of ASP.Net 5 beta 8. I ran DotNetVersionManager-x64.msi and then WebToolsExtensionsVS14.msi. I tried to open a simple app that worked in beta 7 and it won't load the project with a message
This project is incompatible with the current edition of Visual Studio:
Microsoft Visual Studio Community 2015
Version 14.0.23107.0 D14REL
Microsoft .NET Framework
Version 4.6.00079
I then tried to create a new ASP.Net 5 web project and got this:
The project file 'c:\users\myfolder\documents\visual studio 2015\Projects\WebApplication3\src\WebApplication3\WebApplication3.xproj' cannot be opened.
The project type is not supported by this installation.
I have uninstalled and reinstalled the DotNetVersionManager and WebToolsExtensionsVS14 with the same result.
Fixed it by doing this
Close VS, then delete the folder at %localappdata%\Microsoft\VisualStudio\14.0\ComponentModelCache and restart – Sayed Ibrahim Hashimi
Thank you #SayedIbrahimHashimi
The easiest way to get started building applications with ASP.NET 5 is to install the latest version of Visual Studio 2015 (including the free Community edition).
Install Visual Studio 2015
Be sure to specify that you want to include the Microsoft Web Developer Tools.
Install ASP.NET 5.
This will install the latest ASP.NET 5 runtime and tooling.
Enable the ASP.NET 5 command-line tools. Open a command-prompt and run:
dnvm upgrade
This will make the default .NET Execution Environment (DNX) active on the path.
On Windows 7 and Windows Server 2008 R2 you will also need to install the Visual C++ Redistributable for Visual Studio 2012 Update 4.
You are all set up and ready to write your first ASP.NET 5 application!
Reference...

asp.net mvc 3 installed but no templates in vs 2010

when creating a new project
and
no error messages in setup either !!
I have repeated the setup a few times to no avail
anyone else have the same issue or find an answer ?
Make sure you are targetting .NET 4
Make sure you have removed any previous Beta and RC versions before installing the ASP.NET MVC 3 RTM. Also try installing it by downloading the full installer. Once installed you should see the new templates when creating a new web application in Visual Studio. The templates appear when creating a new web application and not new web site.
I installed MVC 3 from the Windows Platform installer and it worked as expected, and templates were created.
I've been struggling with this issue for a couple of hours until i solved the problem by these steps:
Uninstall SP1 for Visual Studio 2010
Repair Visual Studio 2010
Reinstall SP1 for VS2010
I hope you save some time by taking these steps.

I have just installed VS.NET 2003 which left my newer versions (2005/2008) crippled

I had Visual Studio 2008 and 2005 installed on my machine , unfartunately i have to install VS.NET 2003 on it to work on an old project. However after the installation now my VS2008 projects are not compiling as they are unable to resolve the .NET core namespaces. I trying reinstalling .NET 3.5 and VS2008 but it still giving me the same errors while building the solution.
anybody had such experience and any tip to solve it?
strangelly VS 2005 is working fine and it means its working fine with .NET 2.0 deployments however its causing issue with ASP.NET MVC project in VS 2008 which is certainly using .NET 3.5 and yes i have given a try to reinstallation as well
rifferte is correct in that it's safest to install in the other they are released.
Probably the best thing to do at this point is to repair your Visual Studio 2008 installation. You can do this through the Control Panel -> Add Remove Programs menu. This should fix the issues you are seeing.
I think you should try the advice here:
http://channa.gunawardena.org/2008/12/installing-visual-studio-2003-after.html
Basically - you actually have to reinstall the framework outside of VS. That being said - the best advice is to always install VS editions in the order they were released.

Resources