Jim
Jim

Reputation: 743

ASP.NET Precompile with non updateable UI

I want to compile my ASP.NET web forms project into one single dll (which I think is possible) and copy that to the hosting server. As I want to protect all of my code.

In the solution explorer, if I right click the project and go to publish there are various options which I have played around with to precompile the site. The best result I have got so far is precompiled c# code and aspx pages. Unfortunately all of the javascript is still in its normal state.

I think I need to use the Merge all outputs into a single assembly option, but this unfortunately throws the errors: Target GenerateAssemblyInfoFromExistingAssembleInfo Failed and @(_AspNetCompile_AssemblyInfo_Count) have 0 item(s) in the collection. It should only have 1 item(s)

I've tried looking in the msdn docs for information on how to best do this, and there is some information relating to the command line, but I couldn't quite follow it.

I'm using .net 4.5 & visual studio express for web 2013.

If anyone can point me in the direction of a tutorial, or just give me some help. It would be greatly appreciated.

Thanks

Jim

Upvotes: 1

Views: 632

Answers (0)

Related Questions