-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Xamarin.MonoAndroid]: The "FilterAssemblies" task was not given a value for the required parameter "DesignTimeBuild" #173
Comments
I also have a workaround (for my cake-script, but in essence it should work for every build setup): // build.cake
// ....
Task("Build")
//.IsDependentOn ...
.Does(() =>
{
MSBuild(solution, settings => {
settings.SetConfiguration(configuration);
settings.MSBuildPlatform = Cake.Common.Tools.MSBuild.MSBuildPlatform.x86;
settings.WithProperty("version", version);
// workaround bug in MSBuildSdkExtras / Xamarin.Android
settings.WithProperty("DesignTimeBuild", "false");
});
}
// .... Maybe this helps someone. Cheers |
#168 looks related. |
The same problem has been frustrating me. One way to determine if you have the same problem is to try and pack the project manually by setting '/p:DesignTimeBuild="false"' in the msbuild command. If it completes successfully, the congratulations, there is a solution. For example:
If you aren't using Cake, then you can also get around the issue by setting the DesignTimeBuild property to false. Just add it to an existing property group. Don't add it to an ItemGroup. I made this mistake thinking to use the existing Android conditional ItemGroup.
|
I can't seem to repro this in 16.3 preview 1. Does it happen for you there? If so, is there a small repro you can attach? |
@onovotny here is my project, separated into a new solution: I can reproduce it by running a Release build. Debug works. Edit: I will try to reproduce it on 16.3 preview 1 when I can free up some time |
You won't see it in debug because it only happens when you Pack. This project is set to pack on release and so you see the problem. If you set pack on build to false in release then it will finish successfully just like in debug. |
@tdcaesar ok I see, thanks for pointing that out! |
Have you tried adding false To the First of the affected csproj file. |
Yes, but your solution invalidate #174 workaround. |
I had an odd dependency on the new billing library and it has a dependency on annotations. I had to add the resgen fix and turn off designtime builds too: jamesmontemagno/InAppBillingPlugin@1220af4 |
Can you try Extras |
Thank you, @onovotny . Version 2.0.41 works perfectly. I removed the workaround fixes, updated to 2.0.41, and all worked as it had before. Thank you for the fix. |
Thanks, @onovotny, it works like a charm. |
After updating to VS 16.2.0 (Windows), my release build fails with the following message:
MSB4044: The "FilterAssemblies" task was not given a value for the required parameter "DesignTimeBuild"
The .csproj is configured like this:
<TargetFrameworks>netstandard2.0;MonoAndroid81;Xamarin.iOS10;uap10.0.16299</TargetFrameworks>
My global.json:
>>> Download Diagnostic Build Output
>>> Download VS Info
repro_xam_android_filterassemblies.zip
The text was updated successfully, but these errors were encountered: