使用VWD Express Edition发布为预编译的ASP.net-MVC网站

时间:2020-12-11 10:25:56

Is there a way to pre-compile websites with VWD Express ?

有没有办法用VWD Express预编译网站?

Can I use ASP.NET Merge tool or similar utility ? and is there any limitation to options (can I choose whatever options like in VS Pro edition)

我可以使用ASP.NET Merge工具或类似工具吗?选项是否有任何限制(我可以选择VS Pro版本中的任何选项)

3 个解决方案

#1


1  

Not 100% about VWD but do you have post build options within IDE (under the Build Events of the web application properties)

不是100%关于VWD,但你有IDE内的后期构建选项(在Web应用程序属性的构建事件下)

Even without you could run following from the command line

即使没有你可以从命令行运行以下

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

#2


0  

I haven't tried this with anything generated by VS Express, but you should be able to build and deploy the website using a custom MSBuild script no matter where it came from. Something like:

我没有尝试使用VS Express生成的任何内容,但您应该能够使用自定义MSBuild脚本构建和部署网站,无论它来自何处。就像是:

<MSBuild Projects="$(MSBuildProjectDirectory)\MyProject.csproj"
         Targets="ResolveReferences;_CopyWebApplication"
         Properties="WebProjectOutputDir=$(MyTargetDir);OutDir=$(WebProjectOutputDir)\;Configuration=Release" />

#3


0  

I decided to make it easier by creating a custom external tool, here is how I did it: http://blog.larmib.com/2012/how-to-compile-visual-web-developer-2010-express/

我决定通过创建自定义外部工具来简化它,我就是这样做的:http://blog.larmib.com/2012/how-to-compile-visual-web-developer-2010-express/

To make things easier I created a Settings file precompile.vssetting. Enjoy, please +1 my blog if you find my post helpful.

为了简化操作,我创建了一个设置文件precompile.vssetting。如果您发现我的帖子有帮助,请享受我的博客+1。

#1


1  

Not 100% about VWD but do you have post build options within IDE (under the Build Events of the web application properties)

不是100%关于VWD,但你有IDE内的后期构建选项(在Web应用程序属性的构建事件下)

Even without you could run following from the command line

即使没有你可以从命令行运行以下

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

#2


0  

I haven't tried this with anything generated by VS Express, but you should be able to build and deploy the website using a custom MSBuild script no matter where it came from. Something like:

我没有尝试使用VS Express生成的任何内容,但您应该能够使用自定义MSBuild脚本构建和部署网站,无论它来自何处。就像是:

<MSBuild Projects="$(MSBuildProjectDirectory)\MyProject.csproj"
         Targets="ResolveReferences;_CopyWebApplication"
         Properties="WebProjectOutputDir=$(MyTargetDir);OutDir=$(WebProjectOutputDir)\;Configuration=Release" />

#3


0  

I decided to make it easier by creating a custom external tool, here is how I did it: http://blog.larmib.com/2012/how-to-compile-visual-web-developer-2010-express/

我决定通过创建自定义外部工具来简化它,我就是这样做的:http://blog.larmib.com/2012/how-to-compile-visual-web-developer-2010-express/

To make things easier I created a Settings file precompile.vssetting. Enjoy, please +1 my blog if you find my post helpful.

为了简化操作,我创建了一个设置文件precompile.vssetting。如果您发现我的帖子有帮助,请享受我的博客+1。