Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purposes of exe files in the MVC5 projects?

In MVC5 Project there are 3 exe files: enter image description here

My web-hosting provider is not letting me to publish exe files, and he told me to delete them.

During web-deploy I remove selection for this 3 files and publish the rest of the project.

When the publishing process finish and I try to access my website I got the error message that the csc.exe is missing :)

Can I do something to not publish exe files and also my website to run as expected?

Edit - I changed MVC4 with MVC5!

Edit - I discuss with my web-hosting provider and he allowed me to read/write exe files and now my project is running as expected.

like image 639
Lucian Bumb Avatar asked Aug 19 '15 18:08

Lucian Bumb


People also ask

What is mvc5?

The MVC5 was released on October 2013 that runs on the .NET Framework 4.5 and 4.5.1 with Visual Studio 2013. MVC Web application provides different versions such as MVC1, MVC2, MVC3, MVC4, and MVC5. Each version of MVC has its own programming templates. The MVC5 programming model runs on the .NET Framework 4.5 or later version.

How do I start a MVC project in Visual Studio?

In the New ASP.NET Web Application dialog, choose MVC and then choose OK. Visual Studio used a default template for the ASP.NET MVC project you just created, so you have a working application right now without doing anything! This is a simple "Hello World!" project, and it's a good place to start your application.

How do I debug a Visual Studio MVC project?

Visual Studio used a default template for the ASP.NET MVC project you just created, so you have a working application right now without doing anything! This is a simple "Hello World!" project, and it's a good place to start your application. Press F5to start debugging.

Can EXE files be used to run executables on other platforms?

On non-Windows platforms, such as macOS and Linux, EXE files are not used for executables. macOS, for example, uses .APP files to run apps.


1 Answers

You can find a comprehensive explanation here: https://visualstudiomagazine.com/articles/2012/03/20/10-questions-10-answers-on-roslyn.aspx

And here: http://blogs.msdn.com/b/webdev/archive/2014/05/12/enabling-the-net-compiler-platform-roslyn-in-asp-net-applications.aspx

I got the sabe issue with exe files, so I've unnistalled it using the command prompt in the Visual Studio 2015:

uninstall-package Microsoft.CodeDom.Providers.DotNetCompilerPlatform

After uninstalling this package, these "exe" files are not being created in the bin Folder anymore.

like image 89
Fabio Belz Avatar answered Sep 25 '22 07:09

Fabio Belz