gpt4 book ai didi

c# - 从csproj中的一个项目生成两个dll

转载 作者:太空宇宙 更新时间:2023-11-03 13:18:57 25 4
gpt4 key购买 nike

我需要一个项目中的两个 dll General.BL 和 General.UI。我在 General.UI.dll 上遇到错误。错误是:找不到类型或命名空间名称“Window”(是否缺少 using 指令或程序集引用?)

<Target Name="General">
<Csc Condition="%(Compile.CodeType) == 'BL'" Sources="%(Compile.FullPath)" TargetType="library" OutputAssembly="$(OutputPath)General.BL.dll" EmitDebugInformation="true" AdditionalLibPaths="$(OutputPath)"
References="MyDll.dll"/>

<Csc Condition="%(Compile.CodeType) == 'UI'" Sources="%(Compile.FullPath)" TargetType="library" OutputAssembly="$(OutputPath)General.UI.dll"
EmitDebugInformation="true" References="mscorlib.dll;System.dll;System.Core.dll;System.Data.Linq.dll;System.Xml.dll;Microsoft.CSharp.dll;System.Configuration.dll" />

最佳答案

您没有引用 System.Windows.Forms,因此它无法找到任何 Window 派生项。尝试将其添加到引用列表,或完全删除自定义引用列表。

关于c# - 从csproj中的一个项目生成两个dll,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25033760/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com