且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用一个母版页,并从项目的资产到另一个项目的***方法

更新时间:2022-05-02 05:06:41

我做到了。我它嵌入到DLL

这是一个有点棘手,该教程一些code不工作了。但是,在此基础上我做它的工作。

It was a little tricky and some code in that tutorial doesn't work anymore. But based on it I made it work.

当ASPX / ascx的文件会被从文件系统读取,它的读取,而不是从DLL资源。一个配置将其添加到DLL。

When the aspx/ascx file is gonna be read from file system, it's instead read as resource from the DLL. A config adds it into the DLL.

我认为它应该在不同的解决方案的项目甚至工作。只要DLL被发现的VisualStudio,或者它能够识别项目并编译它DLL,它应该工作。

I think it should work even for projects in different solutions. As long as the DLL is found by VisualStudio, or it is able to identify the project and compile its DLL, it should work.