Skip to content
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

[TotalAV] Debug build works for android maui8 but release doesnt compile because file is being used by another process #21836

Closed
michaelonz opened this issue Apr 15, 2024 · 10 comments
Labels
area-xaml XAML, CSS, Triggers, Behaviors platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed t/bug Something isn't working

Comments

@michaelonz
Copy link

michaelonz commented Apr 15, 2024

Description

When i compile in debug my maui 8 app compiles and runs - when i try and compile from the command line using debug it also works but when i try and compile from command line for release it fails:

dotnet build -c Release -f net8.0-android -bl REDACTED.csproj
I get 9 different errors (all the same error but 9 different xaml files mentioned)

The process cannot access the file 'C:\share\repomike\REDACTED\obj\Release
\net8.0-android\REDACTED.dll' because it is being used by another process. [C:\share\repomike\REDACTED\REDACTED.csproj::TargetFramework=net8.0-android]

When i open the msbuild.binlog I get the following also:
Views\HelpPage.xaml The process cannot access the file 'C:\share\repomike\BellMinderProCell\obj\Release\net8.0-android\BellMinderPro.dll' because it is being used by another process. [C:\share\repomike\BellMinderProCell\bellminderpro.csproj]

Steps to Reproduce

No response

Link to public reproduction project repository

No response

Version with bug

8.0.10 SR3

Is this a regression from previous behavior?

Yes, this used to work in .NET MAUI

Last version that worked well

Unknown/Other

Affected platforms

Android, I was not able test on other platforms

Affected platform versions

No response

Did you find any workaround?

I have no work around - at this stage i cannot release the application.

Relevant log output

see above
@michaelonz michaelonz added the t/bug Something isn't working label Apr 15, 2024
@jsuarezruiz jsuarezruiz added platform/android 🤖 s/needs-repro Attach a solution or code which reproduces the issue labels Apr 15, 2024
@jsuarezruiz
Copy link
Contributor

cc @jonathanpeppers

@jonathanpeppers
Copy link
Member

Can you share a .binlog of the failure? https://aka.ms/binlog

From the info above, I can't tell what MSBuild target or task the error is coming from. There should also be a C# stacktrace of some kind?

@jonathanpeppers jonathanpeppers added the s/needs-info Issue needs more info from the author label Apr 15, 2024
@michaelonz
Copy link
Author

@jonathanpeppers do you have an email address i can send it to as there is a lot of information in that file and would rather not have that on public website.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author s/needs-repro Attach a solution or code which reproduces the issue labels Apr 16, 2024
@michaelonz
Copy link
Author

Hi @jonathanpeppers - I have emailed the file to you -thx

@jonathanpeppers
Copy link
Member

This this the XamlCTask, so a general MAUI issue:

image

(It's complaining about the project's .dll file)

@michaelonz do you have some antivirus enabled? Can you exclude the source folder where this project is?

@jonathanpeppers jonathanpeppers added area-xaml XAML, CSS, Triggers, Behaviors and removed platform/android 🤖 labels Apr 16, 2024
@PureWeen PureWeen added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Apr 16, 2024
@dotnet-policy-service dotnet-policy-service bot added the s/no-recent-activity Issue has had no recent activity label Apr 22, 2024
@michaelonz
Copy link
Author

This solved my @jonathanpeppers - disabling the virus checker for that folder

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author s/no-recent-activity Issue has had no recent activity labels Apr 22, 2024
@jonathanpeppers
Copy link
Member

@michaelonz which antivirus software caused it?

@samhouts samhouts added the potential-regression This issue described a possible regression on a currently supported version., verification pending label Apr 22, 2024
@PureWeen PureWeen added s/needs-info Issue needs more info from the author and removed s/needs-attention Issue has more information and needs another look labels Apr 23, 2024
@michaelonz
Copy link
Author

@jonathanpeppers - I went into totalav and added a rule to exclude the root of the solution folder and the problem went away.

@dotnet-policy-service dotnet-policy-service bot added s/needs-attention Issue has more information and needs another look and removed s/needs-info Issue needs more info from the author labels Apr 23, 2024
@jonathanpeppers jonathanpeppers changed the title Debug build works for android maui8 but release doesnt compile because file is being used by another process [TotalAV] Debug build works for android maui8 but release doesnt compile because file is being used by another process Apr 23, 2024
@jonathanpeppers
Copy link
Member

I guess this is: https://totalav.com/

@RoiChen001 RoiChen001 added the s/triaged Issue has been reviewed label Apr 29, 2024
@jfversluis
Copy link
Member

And with that, I think this issue is resolved. Thanks all!

@github-actions github-actions bot locked and limited conversation to collaborators Jun 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-xaml XAML, CSS, Triggers, Behaviors platform/android 🤖 potential-regression This issue described a possible regression on a currently supported version., verification pending s/needs-attention Issue has more information and needs another look s/triaged Issue has been reviewed t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants