如何防止WPF应用程序exe导入并在Visual Studio项目中使用. [英] How to prevent a wpf application exe is imported and used in a visual studio project.

查看:106
本文介绍了如何防止WPF应用程序exe导入并在Visual Studio项目中使用.的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问题:

1)是否可以添加对wpf的引用? .exe文件并在一个全新的项目中使用它?

1) Is it possible to add a reference to a wpf  .exe file and use it in a completely new project?

2)如果是,如何防止您的wpf  .exe 

2) If yes how can you prevent to have your wpf  .exe  application to be used in a visual studio project?

推荐答案

WPF exe文件可以在其他WPF项目中引用.但是据我了解,没有阻止用户在另一个项目中引用.exe的简便方法.

WPF exe files could be referenced in other WPF projects. But as far as I understand, there is no easy way of preventing user from referencing .exe in another project.

唯一的选择似乎是,让用户能够添加对文件的引用,但不能使用它.这需要在exe中实现自定义许可方案.

The only option seems to be, let the user be able to add reference to the file, but not able to use it. This will need custom licensing scheme to be implemented in exe.

 

 

谢谢

CK

如果我的帖子解决了您的问题,请使用标记为答案",如果帖子有用,请使用投票为有帮助"

Please use Mark as Answer if my post solved your problem and use Vote As Helpful if a post was useful


这篇关于如何防止WPF应用程序exe导入并在Visual Studio项目中使用.的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆