I recently updated my PCL to .NET standard and Fody , Realm,Realm.Fody from old versions(3.0.3, 3.1.0) to latest versions(6.3.0, 5.1.2, 5.1.2) respectively. I'm able to deploy to an iOS simulator and android device locally on my PC but on Bitrise Platform(used for CI/CD) this error shows up.
"/Users/vagrant/git/XYZ.csproj" (default target) (6:3) ->
(FodyTarget target) ->
MSBUILD : error : Fody: SolutionDir '/Users/vagrant/git/PQR...' does not exist.
I have already tried adding
<SolutionDir Condition="$(SolutionDir) == '' Or $(SolutionDir) == '*Undefined*'">..</SolutionDir>
or
<SolutionDir>..</SolutionDir>
but the same error shows up .
My Project .csproj file contains the following lines
<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>
I'm unable to find the root cause of this issue.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…