开发者

How can I properly publish my Windows desktop application in such a way that will ensure the end user has the right files needed to run it?

I have created a small desktop application using .NET 4 for generating an authentication string. It runs fine on my Windows 7 computer, however when I deployed it to our QA guy on his Vista machine, it gave him an error saying he needed to install .NET 4... FAIR ENOUGH. We installed .NET 4, however the next error said that "Microsoft.Web.Infrastructure.dll" was missing from the GAC. Crap. So I poked around a bit and found this:

How can I properly publish my Windows desktop application in such a way that will ensure the end user has the right files needed to run it?

I then set Publish Status of Microsoft.Web.Infrastructure.dll to Include and published again. This time it gave him an error about "System.Web.Mvc"! So I knew I was on to something. So I went and did this:

How can I properly publish my Windows desktop application in such a way that will ensure the end user has the right files needed to run it?

However, now when he runs it it just says it can't download files required to run the application, and will not specify what they are!

How can I properly publish my Windows desktop application in such a way that will ensure the end user has the right files needed to run it?

Note: I think Razor and MVC are included because this windows desktop app project is dependent on some other projects in this solution that are using MVC. (Basically this desktop app is using som开发者_StackOverflow社区e of the Models.)

Edit: Here is the end result (README was added by me not VS)

How can I properly publish my Windows desktop application in such a way that will ensure the end user has the right files needed to run it?


As it turned out, the second screen shot view with everything set to Include was the proper way and worked fine while the first screen shot caused missing DLL errors during install. It really was just an FTP upload user error that had the installer looking for a folder that was not there, which is why the second version did not work the first time.


I think you should be looking in the Prerequisites dialog from the Publish tab of the project Properties window, not the Application Files dialog. Not sure if this is an SP1 feature or not (I have SP1).

Image reply from Ryan (question poster):

How can I properly publish my Windows desktop application in such a way that will ensure the end user has the right files needed to run it?

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜