我在我的新风格.csproj中有这个:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net461</TargetFramework>
</PropertyGroup>
<ItemGroup>
<ItemGroup>
<Reference Include="System.Data.SqlServerCe">
<HintPath>..\OtherProject\System.Data.SqlServerCe.dll</HintPath>
</Reference>
</ItemGroup>
</Project>
但是 VS 不断解决对以下内容的引用:
C:\Users\Me\.nuget\packages\microsoft.sqlserver.compact\4.0.8876.1\lib\net40\System.Data.SqlServerCe.dll
但这是错误的汇编版本(文件系统中的那个是4.0.0.1,nuget的是4.0.0.0)
我需要向我的 csproj 添加什么?