I want to publish the Asp.Net MVC application. But when i publish the application, the code files are not converted as dll. The published folder contains all .cs files.
Can you please let me know how to publish the project without .cs files?
For Visual Studio 2012:
After open Publish Web window, go to "Settings" tab.
Here you find "File Publish Options"
Check the "Precompile during publishing" checkbox
I think now you can publish this successfully
For Visual 2010:
Check this link : Why Visual Studio 2010 publish website with source code?
Related
I'm exploring building a Blazor SPA app for a test project I'm working on using Visual Studio 2017 (15.9.4). I have installed .NET Core 2.2.1 and the Blazor Language Services extension but when I open Visual Studio to create a new project, no Blazor template is shown. I was able to create a project using the CLI but when I open the project in Visual Studio it gives several errors inside even though the project runs. There are also no Blazor page templates available when I try to New Item. What can I do to get the templates to load in Visual Studio?
Okay, so I figured it out. I went to File >> New >> Project, selected "ASP.Net Core Web Application" then on the next window I had to change "ASP.NET Core 2.2" to "ASP.NET Core 2.1", then the templates were there.
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).
is it possible to deploy my debug visualizer with the new extension system in visual studio 2010? I want to publish it on the online gallery and allow to manage it via the extension manager.
The visualizer assembly must be copied to "My Documents\Visual Studio 2010\Visualizers"
It's not possible:
Extension Manager/VSIX doesn't support placing files in the user's documents location, so this isn't possible.
See here.
It's not possible via a VSIX, but you can publish MSIs to the Visual Studio Extension Gallery. There are no restrictions on what the MSI can do.
Where can i find out the "Convert to Web Application" option in Visual studio 2010 Premium version.I have a website which i want to convert to Web application.I right clicked on the project int the solution explorer and could'nt see that in the context menu.I have Power commands extension installed too.
I use MS Visual Studio 2010 Ultimate which has all of the features of Premium, I also see that this menu is missing.
I suggest that you make a new ASP.NET web application with the same name and copy the resources of the Website to the resource folder of the web application, and load the resources as existing items.
Is it possible to include custom data files in ClickOnce deployment?
I couldn't find any option for this (Visual Studio 2005 and 2010). The Application Files dialog from the publish tab just doesn't show custom files.
It actually possible, at least as of Visual Studio 2012 (most likely Visual Studio 2010 as well). The key is to set the build action on the file to "Content".
More information is in Custom Folders in ClickOnce.
It seems that it is impossible. From ClickOnce Deployment Overview in ClickOnce Deployment Overview (MSDN):
Installation of shared files -- No
Also the article ClickOnce deployment or not? was very useful.