Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
647 views
in Technique[技术] by (71.8m points)

xamarin.forms - (FodyTarget target) -> MSBUILD : error : Fody: SolutionDir 'PathXYZ' does. not exist

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.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)
等待大神答复

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to WuJiGu Developer Q&A Community for programmer and developer-Open, Learning and Share
...