Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Xamarin.Android.Build.Tasks] designer needs full paths in librarypro…
…jectimports.cache (#2607) The Xamarin.Android designer uses the paths found in `libraryprojectimports.cache`, and recently was coming up with some odd paths in test failures: C:\Program Files (x86)\Microsoft Visual Studio\2019\Preview\Common7\IDE\obj\Debug\90\lp\2\jl\res Looking at the contents of `libraryprojectimports.cache`, some of the paths were no longer full paths: <Paths> ... <ResolvedResourceDirectories> <ResolvedResourceDirectory>obj\Debug\81\lp\6\jl\res</ResolvedResourceDirectory> <ResolvedResourceDirectory>obj\Debug\81\lp\9\jl\res</ResolvedResourceDirectory> <ResolvedResourceDirectory>obj\Debug\81\lp\11\jl\res</ResolvedResourceDirectory> <ResolvedResourceDirectory>obj\Debug\81\lp\12\jl\res</ResolvedResourceDirectory> <ResolvedResourceDirectory>obj\Debug\81\lp\13\jl\res</ResolvedResourceDirectory> <ResolvedResourceDirectory>obj\Debug\81\lp\14\jl\res</ResolvedResourceDirectory> </ResolvedResourceDirectories> ... </Paths> In 02c07ed, we inadvertently lost the full paths when LINQ was removed. Things worked fine during regular builds, but not within the context of the designer. Changes: - Anywhere we add to `resolvedResourceDirectories`, should use `Path.GetFullPath` - Same with `resolvedAssetDirectories` - Fixed a place where an `assemblyDir` variable made more sense to be named `assetsDir`.
- Loading branch information