问题描述
我最近将我的 PCL 更新为 .NET 标准,并将 Fody、Realm、Realm.Fody 从旧版本(3.0.3、3.1.0)分别更新到最新版本(6.3.0、5.1.2、5.1.2)。我可以在我的 PC 上本地部署到 iOS 模拟器和 Android 设备,但在 Bitrise 平台(用于 CI/CD)上会出现此错误。
"/Users/vagrant/git/XYZ.csproj" (默认目标) (6:3) -> (FodyTarget 目标) -> MSBUILD:错误:Fody:SolutionDir '/Users/vagrant/git/PQR...' 不存在。
我已经尝试添加
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..\</SolutionDir>
或
<SolutionDir>..\</SolutionDir>
但出现同样的错误。
我的项目 .csproj 文件包含以下几行
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<AssetTargetFallback>$(AssetTargetFallback);portable-net45+win8+wpa81+wp8</AssetTargetFallback>
<DebugType>full</DebugType>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">Anycpu</Platform>
<ProjectGuid>{ABCD}</ProjectGuid>
<OutputType>Library</OutputType>
<RootNamespace>XYZ</RootNamespace>
<AssemblyName>XYZ</AssemblyName>
<ReleaseVersion>0.8</ReleaseVersion>
<SolutionDir>..\</SolutionDir>
</PropertyGroup>
我无法找到此问题的根本原因。
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)