How to use aspnet_compiler

Seeing this [message] [1], I thought that I would give it.

So, in my Post Build event, I put ...

C: \ Windows \ Microsoft.NET \ Framework \ v2.0.50727 \ aspnet_compiler -v / -p "$ (ProjectDir) \"

... then click Build Solution.

Unfortunately, I got the following error: "Could not load type 'MyWebProject.UI.Global. C: \ global.asax 1 MyWebProject.UI"

Any ideas why? As far as I know, I don’t even have a C: \ global.asax file.

Ultimately, I want to check my ASPX pages for errors. At the moment, the only way I can do this is to go to the page.

Any other suggestions / approaches are welcome!

Thanks,

ETFairfax

+3
3

http://mikehadlow.blogspot.com/2008/05/compiling-aspx-templates-using.html

C:\WINDOWS\Microsoft.NET\Framework\v4.0.30319\aspnet_compiler.exe -v/-p " " d:\testPrecompileFolder -f

+1

. , , aspnet_compiler . , - .

+1

Visual Studio? " → -"?

0

Source: https://habr.com/ru/post/1724495/


All Articles