C# .NET CORE 开发问题汇总

1. error MSB4803: .NET Core 版本的 MSBuild 不支持"ResolveComReference"。请使用 .NET Framework 版本的 MSBuild。

引用了一个COM组件, 使用donet 命令时,提示不支持, 可以先将项目设置为x86以构建, 将COM引用添加到核心项目中,构建它,在obj\x86\Debug\net8.0-windows 文件夹中获得一个Interop.YourCom。

删除COM引用,然后重新添加Interop,它将被放入程序集依赖项中,MSBuild将正常工作

依赖项,程序集中,更改Interop.YourCom属性,复制本地:是,嵌入互操作类型:是

相关推荐
1-1=02 天前
C# IO和序列化
c#·.net·.netcore
宝桥南山3 天前
.NET 11 - 尝试一下Blazor中的新特性SupplyParameterFromTempData
microsoft·微软·c#·asp.net·.net·.netcore
1-1=04 天前
C# 特性(Attribute)
c#·.net·.netcore
淡海水5 天前
10-01-互操作-C#与C++边界的内存管理
unity·c#·游戏引擎·.netcore·gc
1-1=05 天前
C# 反射
c#·.net·.netcore
1-1=06 天前
C# 泛型
c#·.net·.netcore
淡海水8 天前
09-01-内存-Unity资源生命周期全景
unity·c#·游戏引擎·.netcore·gc
1-1=08 天前
.NET Core 编译技术
.net·.netcore
1-1=09 天前
.NET Core 文件系统
.net·.netcore·1024程序员节
1-1=010 天前
.NET Core 内存管理
.net·.netcore