I have a mvc4 project which has four solution configurations and a transform web.config file for each. I need to be able to change config and have the transforms applied so I can debug in Visual Studio 2010.
I can do this easily with console applications as they are compiled into a bin folder and the configs applied but unfortunately not with the mvc app.
Any thoughts?
Related
I have an SPA where the API backend is developed in Visual Studio with ASP.NET 6.0
and the frontend is built/packed with rollup. Since Visual Studio should also host the fronend
files, rollup copies them to the subdirectory wwwroot of the Visual Studio project directory.
Every time rollup copies the files to wwwroot, Visual Studio consumes a lot of CPU. It looks
as if it parses all the files, maybe for Intellisense?
This doesn't make sense in this case, however, because the content of wwwroot is the built
output of rollup. Is there any way to tell Visual Studio to ignore these files during development
but still serve them when debugging?
If there are better ways to do this, I appreciate any recommendations.
I'm using Visual Studio 17.4.4
I have a open source project that include Visual Studio project files. There is a solution file with four projects files. When the source files are distributed and unpacked, Visual Studio picks the wrong project as the default project. New users don't know they need to right click a certain project, and then select Set as Startup Project.
I've tried re-ordering the projects in the solution file so the appropriate project is first, and I tried changing the UUID on the appropriate project so its the lowest. Neither have helped with the problem of Visual Studio selecting the wrong startup project.
The Visual Studio versions I test against are Visual Studio 2005, 2008, 2010, 2012, 2013 and 2015.
What determines the default startup project?
What can I do to ensure Visual Studio selects the correct startup project?
A related question is Why is “Set as Startup” option stored in the suo file and not the sln file?, but it asks "Why..." and does not ask "How To...".
If there is a *.suo file, the Startup Project is saved there.
Otherwise, the first project listed in the *.sln file will be the Startup.
(tested with VS 2013)
Unlike previous versions, Visual Studio 2015 places build-related files in a .vs folder alongside your solution. By default, that includes a new applicationHost.config for web applications.
As stated here, You can edit the web application .csproj/.vbproj file to include <UseGlobalApplicationHostFile>True</UseGlobalApplicationHostFile>, and then it will continue to use %userprofile%\My Documents\IISExpress\config\ApplicationHost.config
But I don't want to change every web application project file. So is there a "template" for the new applicationHost.config that Visual Studio / IIS Express creates?
You can edit the template that Visual Studio uses at %ProgramFiles(x86)%\IIS Express\config\templates\PersonalWebServer\applicationhost.config
I have a visual studio solution with a a vs2010 project
Everytime I open it I got this warning.
Visual Studio needs to make non-functional changes to this project in
order to enable the project to open in this version and Visual Studio
2010 SP1 without impacting project behavior.
ANd it generates some xml log files
I need to definitely convert it to vs 2012
How can I do that without breaking anything else?
I was able to solve it by opening the .csproj file and changing this
<FileUpgradeFlags>0</FileUpgradeFlags>
for this
<FileUpgradeFlags></FileUpgradeFlags>
Iam using visual studio 2010. i have developed one web application. my iis application pool was set to 3.5 only. when i deployed my app on iis it is showing target framework=4.0 error.
can any one tell me how to deploy my visual studio 2010 web project to run under dotnet framework 3.5?
open project files (.sln and .csproj) files in notepad and find the following lines(1st line) and replace with second line, you will convert your application to vs2008 successfully
TargetFrameworkMoniker = ".NETFramework,Version=v2.0"
TargetFramework = "3.5"
Visual Studio 2010
Visual Studio 2008
Microsoft Visual Studio Solution File, Format Version 11.00
Microsoft Visual Studio Solution File, Format Version 10.00
10.0.20506
9.0.30729
\VisualStudio\v10.0\
\VisualStudio\v9.0\
if u not find some lines dont worry , leave it
after changes, you may get a error from web.config from tag
remove this tag entirely, and also you may get config section errors like register components in web.config remove those tags also, and compile your code and run(what ever errors you may get from web.config remove them appropriately).