Skip to content

Conversation

@dellis1972
Copy link
Contributor

@dellis1972 dellis1972 commented Oct 20, 2017

Commit 8643ded reworked the msbuild tests to use msbuild. But
there was a problem with the logic.

string.IsNullOrEmpty (useMSBuild) || useMSBuild == "0"

well the Environment variable USE_MSBUILD will ALWAYS be empty.
Because we never set it. so the logic should be

!string.IsNullOrEmpty (useMSBuild) && useMSBuild == "0"

so that if it is set it has to be "0" to allow xbuild to be
used.

Also one of the tests was using RunningMSBuild before it was
calculated. So it was always false. So just added some logging to
print what we are using to the console. This forces RunningMSBuild
to be calculated.

One final issue was with the intermediate .pdb files being cleaned
up by IncrementalClean. Turns out we had a fix for the .mdb files
in Xamarin.Android.Windows.targets. So the solution there was to
add the same work around for .pdb files.

Commit 8643ded reworked the msbuild tests to use msbuild. But
there was a problem with the logic.

	string.IsNullOrEmpty (useMSBuild) || useMSBuild == "0"

well the Environment variable USE_MSBUILD will ALWAYS be empty.
Because we never set it. so the logic should be

	!string.IsNullOrEmpty (useMSBuild) && useMSBuild == "0"

so that if it is set it has to be "0" to allow xbuild to be
used.

Also one of the tests was using `RunningMSBuild` before it was
calculated. So it was always false. So just added some logging to
print what we are using to the console. This forces `RunningMSBuild`
to be calculated.

One final issue was with the intermediate .pdb files being cleaned
up by `IncrementalClean`. Turns out we had a fix for the .mdb files
in `Xamarin.Android.Windows.targets`. So the solution there was to
add the same work around for .pdb files.
@jonpryor jonpryor merged commit 286b9c2 into dotnet:master Oct 20, 2017
Redth pushed a commit to Redth/xamarin-android that referenced this pull request Oct 30, 2017
Commit 8643ded reworked the msbuild tests to use msbuild. But
there was a problem with the logic.

	string.IsNullOrEmpty (useMSBuild) || useMSBuild == "0"

well the Environment variable USE_MSBUILD will ALWAYS be empty.
Because we never set it. so the logic should be

	!string.IsNullOrEmpty (useMSBuild) && useMSBuild == "0"

so that if it is set it has to be "0" to allow xbuild to be
used.

Also one of the tests was using `RunningMSBuild` before it was
calculated. So it was always false. So just added some logging to
print what we are using to the console. This forces `RunningMSBuild`
to be calculated.

One final issue was with the intermediate .pdb files being cleaned
up by `IncrementalClean`. Turns out we had a fix for the .mdb files
in `Xamarin.Android.Windows.targets`. So the solution there was to
add the same work around for .pdb files.
jonpryor pushed a commit that referenced this pull request Mar 2, 2022
Partially fixes: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1467817

Changes: dotnet/java-interop@cbd9666...aae23c9

  * dotnet/java-interop@aae23c97: [Java.Interop] use $(DebugType)=portable (#958)
  * dotnet/java-interop@1987829f: [ci] Move CI builds to 1ES's hardened images. (#953)

A warning is printed when building with `-p:MonoSymbolArchive=true`:

	Warning: Directory obj\Release\120\android\assets contains Java.Interop.dll but no debug symbols file was found.

It turns out we are missing `Java.Interop.pdb` from our installer!

Update to dotnet/java-interop@aae23c97, which allows
`Java.Interop.pdb` to be built, and add `Java.Interop.pdb`,
`Mono.Posix.pdb`, and `System.EnterpriseServices.pdb` to our
`.vsix` installer.
@github-actions github-actions bot locked and limited conversation to collaborators Feb 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants