开发者

Devenv deployment parameters

I have开发者_如何学C a report project that I want to script deploying to a development server. I need to just change the TargetServerUrl in the project properties. Is there a way to do this?

i.e.

&devenv.exe RSReports.sln /project Reports\Reports.rptproj /deploy

maybe => properties:TargetServerUrl=http://myserver/ReportServer


I know nothing about report projects but in almost every VS project you can define multiple "Configuration"s (the defaults are Debug and Release). So you can have one target in debug and another in Release mode, and use the command line

devenv /deploy Release RSReports.sln

Another option is to use the msbuild.exe utility to build your project (instead of devenv), and use it's proprerty replacemnet parameter

"c:\Windows\Microsoft.NET\Framework\v4.0.30319\MSBuild.exe" "Full path to soulution" /t:Build /p:Configuration=Release /p:TargetServerUrl=http://myserver/ReportServer
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜