【发布时间】:2019-05-16 04:09:05
【问题描述】:
我刚刚更新了 VS2017 和 VS2019 vs 并升级了我的项目以引用 .Net Framework 4.7.2
当我打开我的 c# XAF winforms 解决方案时,我得到构建错误。
CS0246: The type or namespace name could not be found (are you missing a using directive or an assembly reference
好像缺少对 Module 项目的引用。
引用是被引用的文件在文件夹中 MyApp\Module\bin\Debug\MyApp.Module.dll
当我删除引用并尝试添加项目时,会添加对 .dll 的引用。
我正在为 XAF dll 使用 Nuget
我可以在 MyApp.Module.Win.csproj 中看到以下内容
<ItemGroup>
<ProjectReference Include="..\MyApp.Module\MyApp.Module.csproj">
<Project>{guid etc}</Project>
<Name>MyApp.Module</Name>
</ProjectReference>
【问题讨论】:
-
可能是因为需要更新 nuget 包以使用不同的目标框架
标签: .net visual-studio nuget xaf