I have just installed visual studio 2012 ultimate.
In the new project dialog I have
No .net framework 4.5 option
No MVC project templates
I have repaired the installation. (twice now).
I have tried starting vs with
devenv /installvstemplates
I have also tried
devenv /resetsettings
all to no avail !!
Any suggestions ?
Try to install ASP.NET and Web Tools 2012.2 update for Visual Studio 2012
This worked for me.
I thought the same when I first had my 2012, I had to manually download the file
MVC .Net 4.5
Hopefully this helps you :)
I uninstalled and then reinstalled and the mvc project templates & .net framework are there now.
I think the problem was that I was installing from a mounted .iso file.
For the reinstall I set my ISO software to remount at startup.
Still pretty poor that a repair did not fix this !!
Related
I know that the regular uninstall available through Windows 10 for installing and uninstalling programs leaves "bread crumbs" in both the C:\Users subdirectory and the registry. I had to do this for Visual Studio 2019 when I uninstalled it but I do not know the equivalent instructions for VS2012.
Does anyone know any specifics with regards to this?
I read through many of the posts on here and never found a clear answer that worked. So after spending the time getting this to work, I figured I should post it.
Problem: The publishing profile would build on the server, but would not publish.
Solution:
Make sure you installed Microsoft Windows SDK and .Net Framework 4
From your client machine with Visual Studio 2012 update 2 installed, copy:
\Program Files(x86)\MSBuild\Microsoft\Visual Studio\v11.0\Web\
\Program Files(x86)\MSBuild\Microsoft\Visual Studio\v11.0\WebApplications\
To the same location on your server.
Then make a simple batch file:
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" /v:diag
YOUPROJECT.sln /p:Configuration=Debug /p:DeployOnBuild=true
/p:PublishProfile=YOURPROFILE
This is working for us on multiple build servers.
I hope this helps someone.
It seems insane to me that Microsoft hasn't provided a MSBuild update with all the publishing options. It seems to me that the command line tools are more important on the server....
Just moving Dave's solution into an answer.
Solution:
Make sure you installed Microsoft Windows SDK and .Net Framework 4
From your client machine with Visual Studio 2012 update 2 installed, copy:
\Program Files(x86)\MSBuild\Microsoft\Visual Studio\v11.0\Web\
\Program Files(x86)\MSBuild\Microsoft\Visual Studio\v11.0\WebApplications\
To the same location on your server.
Then make a simple batch file:
"C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" /v:diag
YOUPROJECT.sln /p:Configuration=Debug /p:DeployOnBuild=true
/p:PublishProfile=YOURPROFILE
This is working for us on multiple build servers.
We have a Visual Studio solution that contains some VC++ projects, and we've currently upgraded to Visual Studio 2012 from VS2010. In the process we also lifted the VC++ projects to PlatformToolset v110.
On our build server (Jenkins), we would like to build this project with MsBuild without having to install VS2012. But I can't get it to work, and I think it's because the folder C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110 must be present.
This folder and its contents is created during installation of VS2012, but as far as I can tell it won't be included in either the Windows SDK 7.1 or Windows SDK 8.0?
Is there any other SDK or installation package that can help with this issue?
I know it's not really without installing Visual Studio 2012, but:
If licensing costs are the biggest driver perhaps the Express for Windows Desktop edition could be an alternative. You could keep the installation to the minimum required to support C++ builds.
I installed VS Express 2012 for Web from the Web Platform Installer, but it won't start. I click the shortcut (or the EXE) and get this error message:
Microsoft Visual Studio Express 2012 for Web
Cannot find one or more components. Please reinstall the application.
I've tried uninstalling, reinstalling, running the repair tool. Downloading the standalone install, etc. I have Windows 7 x64 SP1 fully updated from Windows Update. I'm not sure where to begin troubleshooting. I ran collect.exe but don't know where to look or what to look for.
I had the same problem with VS 2012 Express for Desktop, also on Windows 7 x64 SP1. These two links have the same solution which worked for me:
http://social.msdn.microsoft.com/Forums/en-US/4f24be62-7a19-4f95-bc33-1f57cc3d3fcd/visual-studio-express-2012-for-desktop-cannot-find-one-or-more-components?forum=vssetup
http://maditguy72.blogspot.com/2013/06/cannot-find-one-or-more-components.html
The solution that worked for me is to delete this registry key: [HKEY_CURRENT_USER\Software\Microsoft\Windows NT\CurrentVersion\AppCompatFlags\Layers]
I ran Visual Studio 2005 on Windows Vista (32-bit). I recently upgraded to Windows 7, and Visual C++ began crashing when building release executables. The actual crash is in mt.exe. I get the message, "mt.exe has stopped working".
Is there a way to solve the crash, or do I need to upgrade to Visual Studio 2008?
I did a clean install of Windows 7 (64-bit) instead of an upgrade, and the problem went away.
You should check your .NET installation before reinstalling windows. Read this:
http://blogs.msdn.com/b/astebner/archive/2008/10/13/8999004.aspx
mt.exe is part of Windows SDK. Maybe you can try the version in Windows 7 SDK.