How to create a Web App project without page.designer.cs files? - visual-studio-2012

In Visual Studio 2012 there is no website deployment, ok I switched to Web Project, now it has generated tons of page.designer.cs files, how can I make a web app project without the designer.cs files ?

Visual Studio create these files for easiness of coder, you will always get these kind of files when you create a new web app project. These files creates the necessary code you need for designing the web page.
But once you publish the web app to the server using the VS2010 publisher, these files are gone and only the .aspx files are remained. Why does this happen? because your code i.e. .cs files needs to compiled before it can be published on the server.

Related

Add static files like html, css etc on publish alone in VS2017 .net framework project

Need to include static files (angular build results) on visual studio 2017 Web API project, in publish alone, for azure deployment. Kindly advice.
I'am not sure that you can do this using Visual Studio Publish tool for .net framework project ,
but I would recommend doing this manually using FTP.

How to create Asp.Net WebPage Project in VS 2012?

From another question, got to know that there are three development models in Asp.Net. I have installed VS 2012 in my laptop, but when I try for new web project, I am not able to see the WebPages project template.
Do I need to download the template or Am i doing it in wrong way?
In Asp.net/WebPages, it has a WebMatrix downloadable link. Does that mean, Asp.net webpage project can be created only with WebMatrix?
Web Pages projects are Web Site Projects, so you create them by choosing File ยป New Web Site, then choose ASP.NET Web Site (Razor v2).

How to add TypeScript to Visual Studio 2012 ASP.net web forms web-site?

I'm trying to add TypeScript to an existing:
web-site (not a web-application)
web forms (not MVC)
Visual Studio 2012
I think, at a fundamental level, the problem is that an ASP.net web-site has no project. This means there is no ability to define "Build options". An ASP.net web-site cannot declare that a *.ts file should have a build action of Compile, since without a project file there are no build actions.
Obviously i'm not going to convert to a web-application (due to the unresolvable disadvantages of a web-applications).
Having said that, how do i add TypeScript to an:
ASP.net
web-site
web-forms
Visual Studio 2012
solution?
Bonus Reading
Using TypeScript in an existing Visual Studio Web Site project (web-application)
How do I add typescript to an existing Asp.Net MVC project? (mvc web-application)
typescript for web forms (web-application)
Converting existing JavaScript code to TypeScript in Visual Studio (web-application)
You can simply add typescript files to the project and manage the compilation externally (outside of visual studio) using something like grunt-ts https://github.com/basarat/grunt-ts (disclaimer : I am one of the authors)
You can add a *.ts file to the web folder, then run the ts compiler from the command prompt.
Or create a separate web app with just the TS file. Then in the build properties, add a command to copy it to the desired location.

Prevent VS2012 to convert my projects into Web Applications

We have a big solution that we just recently migrated to Visual Studio 2012. In this solution, one project is the main Web Application in IIS and the other projects are folders inside this Web Application. Every time we open the solution, VS2012 turns these folders into Web Applications and it breaks the site. Is there any way to avoid this conversion?
We found the solution. We changed the projects properties to not use IIS but a Custom Server with our local url.

Windows Azure not generating aspx files

I setup my first Azure Cloude Service as well as Web Role. When I build and then publish application I can only see bin directory with all my dlls. I don't have any folders or aspx files.
\ProjectName.CloudService\bin\Debug\ProjectName.CloudService.csx\roles\Web\bin
How can I compile other files.
Are the .aspx files actually added to the Visual Studio project? (Visual Studio only copies the files it knows about.) If you don't see them in the treeview for the project, click the button at the top that shows files not part of the project, and then right-click and "include in project" on the files you're missing.
If that doesn't work, you might consider heading over to the MSDN forum for Windows Azure: http://social.msdn.microsoft.com/forums/en-us/windowsazure/threads and asking there.
If you look in your Cloud Service project folder, you won't find the aspx files, dlls, etc. The Cloud Service project folder will only contain your configuration files and eventually your packaged Azure deployment files. You'll want to look in bin\Debug\ folder under your Web Role (ASP.NET) project.

Resources