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
Build -> Archive
command hangs, "Please ensure that you are using a release configuration and that "Use Shared Mono Runtime" option unchecked."
#1760
Comments
When I check the output of Xamarin, it says:
|
@xufeipyxis Can you please provide your most recent You should be able to build on the command line via:
If that fails, it should give a proper error message as to what's wrong. |
@xufeipyxis I see two different issues here.
Please also update to 15.7.3 that we released yesterday that include a few bug fixes. |
I created a new Xamarin.Android project and it achieved ok. I will check my project. |
I am having the same problem. why did you close this without a solution? I dont think that this has something to do with any of these above.
I am sure that this bug is related to this ticket #1651 |
I just tried using command line and it looks like that it is working fine. Not sure if that it is just building or also archiving. but no error at all. @JonDouglas this has nothing to do with build. Build works just fine. only archiving fails. how do you understand that he has a problem in his manifest? my logs looks the same but i dont see anything related to manifest |
Ok i see that he has something regarding manifest in his log bu in my log, i dont have anything related to it.
Here is how my configuration looks like for android release
|
/cc @joj as this looks to be more specific with Visual Studio archiving as a command line build works. Reopening as we have had a second report on this issue. |
I have just tested my application an VS2017 enterprise version and this error is not happening. this is only error for Community and Professional versions. so basically archiving - Enterprise : Bundle into native assemblies works, without bundling works |
Latest version 15.7.4 also has this problem |
It seems that it's also related to the |
@xufeipyxis i am not sure if it is correct because i have 2 machines as i mentioned above one has Vs2017 pro and other one Vs2017 enterprise. same project archives fine on enterprise but fails on professional. as OP stated apparently also problem for community version |
I'll take a look and post back here. We usually don't make any checks for Enterprise/Community/Professional (except for the few components that are Enterprise only) but something might have gone wrong. I'll keep you posted. |
BTW, the exception mentioned above
has been fixed. The fix will be in preview soon. |
I tried the repro. It looks like the UI is not super clear, but an error message is shown about Shared Use Runtime (which is unchecked, too). Now I need to understand why this only happens in community/pro, and what we can do to make that error message clear. This looks like it's hanged, but it's actually not going to go through because of that error. Also, Shared Runtime is unchecked on my case, so this message shouldn't be shown. I'll keep updating as I figure out what's happening and fix it. |
Found the bug. It manifests in Community for some reason but has nothing to do with community. The good news is that restarting VS is a valid workaround. It works after that, with the correct settings. I'll be working on a fix. |
Still on this. It seems the bug exceeds Xamarin and I may need to forward it. I'll keep updating here, though. |
It still problem with the latest 15.7.8 update. |
Remove the "Use Shared Runtime" from Debug mode as well. It don't work in Release mode if "use shared runtime" is enable for Debug configuration. |
I can't believe it but deleting the .vs folder did fix the issue here.
|
I'm experiencing this is VS2017 Pro. All that we had to do was (close Visual Studio) delete the .vs folder and restart Visual Studio. |
I experienced the same issue just now while trying to deploy an application to the play store. the error(unable to sign app) and the solution(deleting .vs hidden folder in project solution) are completely unrelated to me as a beginner in xamarin android, really frustrating bug. |
Got the same problem, closing visual studio and deleting .vs folder works, but it's quite annoying to do that every time. Microsoft Visual Studio Enterprise 2017 |
Same problem here. Restarting studio after deleting .vs folder worked. Microsoft Visual Studio Enterprise 2017 Xamarin 4.11.0.776 (d15-8@1ae9b59d7) |
Same here, a simple restart without deleting the .vs folder worked, too. |
Same problem here. Closing Visual Studio and delete .vs folder under my project. Resolve this issue |
Deleting .vs folder and restarting visual studio resolved my issue |
Same problem with VS 15.9.2 - Restarted VS fixed it. Note that I built a release branch first and pushed it to a device, then archived. Perhaps that previous release build had something to do with it. |
Same problem with VS 15.9.3 - Restarted VS fixed it. 4h of troubleshooting wasted on this... |
Same problem with VS 15.9.3
|
Got the same issue. Don't know when it appeared but I updated VS one week ago ... VS 15.9.4 |
Did You try deleting obj, bin and .vs folder and restarting visual studio and rebuilding your project? |
Yep. It did the job (deleting .vs folder & restart). My post was informative :). Thanks |
@JeetR's solution will fix 99% of issues that arise in projects that have worked previously. |
Having this problem too. Sometimes it looks like the compiler doesn't even compile my new written code, e.g. click events not working in my app. A clean of the whole project will fix it. It works, but really annoying. |
Having the same problem too. |
15.9.12 on VS2017, it is still problem. |
Agreed. In 15.9.12, I reproduced this myself. Simply closing and restarting VS2017 (Community) works as a workaround. The only thing I can note is that I was doing a LOT of debugging in the same session I performed a Release Clean/Rebuild/Archive in - is it possible that this has something to do with it? |
What i found is that you need to select Release in Build->Configuration Manager in the menu. Then if you run Archive, it will work. You can choose to have the Release tag on just Android or IOS individually. |
Steps to Reproduce
Expected Behavior
Create an archive
Actual Behavior
It never completes.
I'm using release configuration and "Use Shared Mono Runtime" option is unchecked
This is my release configuration. I know this options are not available in the community verison of VS2017, but I can change it manually and reloade the project. It used to compile ok in April and earlier. I'm not sure if something changed in recent VS update.
Version Information
15.7.1
Microsoft Visual Studio Community 2017 (VS2017)
Version 15.7.1
VisualStudio.15.Release/15.7.1+27703.2000
Microsoft .NET Framework
Version 4.7.03056
Installed Version: Community
Visual C++ 2017 00369-60000-00001-AA302
Microsoft Visual C++ 2017
Application Insights Tools for Visual Studio Package 8.12.10405.1
Application Insights Tools for Visual Studio
ASP.NET and Web Tools 2017 15.0.40501.0
ASP.NET and Web Tools 2017
ASP.NET Core Razor Language Services 15.7.31476
Provides languages services for ASP.NET Core Razor.
ASP.NET Web Frameworks and Tools 2017 5.2.60419.0
For additional information, visit https://www.asp.net/
Azure App Service Tools v3.0.0 15.0.40424.0
Azure App Service Tools v3.0.0
C# Tools 2.8.0-beta6-62830-08. Commit Hash: e595ee276d14e14bfb3eb323fb57f2aa668bddea
C# components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Common Azure Tools 1.10
Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.
Dotfuscator Community Edition 5.34.0.6830-9173b9a63
PreEmptive Protection - Dotfuscator CE
GorillaPlayerPackage Extension 1.0
GorillaPlayerPackage Visual Studio Extension Detailed Info
JavaScript Language Service 2.0
JavaScript Language Service
JavaScript Project System 2.0
JavaScript Project System
JavaScript UWP Project System 2.0
JavaScript UWP Project System
JetBrains ReSharper Ultimate 2017.2.2 Build 109.0.20171006.122324
JetBrains ReSharper Ultimate package for Microsoft Visual Studio. For more information about ReSharper Ultimate, visit http://www.jetbrains.com/resharper. Copyright © 2018 JetBrains, Inc.
Merq 1.1.17-rc (cba4571)
Command Bus, Event Stream and Async Manager for Visual Studio extensions.
Microsoft Continuous Delivery Tools for Visual Studio 0.3
Simplifying the configuration of continuous build integration and continuous build delivery from within the Visual Studio IDE.
Microsoft JVM Debugger 1.0
Provides support for connecting the Visual Studio debugger to JDWP compatible Java Virtual Machines
Microsoft MI-Based Debugger 1.0
Provides support for connecting Visual Studio to MI compatible debuggers
Microsoft Visual C++ Wizards 1.0
Microsoft Visual C++ Wizards
Microsoft Visual Studio Tools for Containers 1.1
Develop, run, validate your ASP.NET Core applications in the target environment. F5 your application directly into a container with debugging, or CTRL + F5 to edit & refresh your app without having to rebuild the container.
Microsoft Visual Studio VC Package 1.0
Microsoft Visual Studio VC Package
Mono Debugging for Visual Studio 4.10.5-pre (ab58725)
Support for debugging Mono processes with Visual Studio.
Node.js Tools 1.4.11027.3
Adds support for developing and debugging Node.js apps in Visual Studio
NuGet Package Manager 4.6.0
NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.
OzCode 1.0
Your road to Magical Debugging. http://www.oz-code.com
OzCodePackage Extension 1.0
OzCodePackage Visual Studio Extension Detailed Info
ProjectServicesPackage Extension 1.0
ProjectServicesPackage Visual Studio Extension Detailed Info
ResourcePackage Extension 1.0
ResourcePackage Visual Studio Extension Detailed Info
SQL Server Data Tools 15.1.61804.210
Microsoft SQL Server Data Tools
TypeScript Tools 15.7.20419.2003
TypeScript Tools for Microsoft Visual Studio
Visual Basic Tools 2.8.0-beta6-62830-08. Commit Hash: e595ee276d14e14bfb3eb323fb57f2aa668bddea
Visual Basic components used in the IDE. Depending on your project type and settings, a different version of the compiler may be used.
Visual F# Tools 10.1 for F# 4.1 15.7.0.0. Commit Hash: 16ecf5a30ad868d183c58e4a71a71c23d4ed3ba9.
Microsoft Visual F# Tools 10.1 for F# 4.1
Visual Studio Code Debug Adapter Host Package 1.0
Interop layer for hosting Visual Studio Code debug adapters in Visual Studio
Visual Studio Tools for CMake 1.0
Visual Studio Tools for CMake
Visual Studio Tools for Unity 3.7.0.1
Visual Studio Tools for Unity
Visual Studio Tools for Universal Windows Apps 15.0.27703.01
The Visual Studio Tools for Universal Windows apps allow you to build a single universal app experience that can reach every device running Windows 10: phone, tablet, PC, and more. It includes the Microsoft Windows 10 Software Development Kit.
VisualStudio.Mac 1.0
Mac Extension for Visual Studio
Windows Machine Learning Generator Extension 1.0
Windows Machine Learning Visual Studio Extension Detailed Info
WiX Toolset Visual Studio Extension 0.9.21.62588
WiX Toolset Visual Studio Extension version 0.9.21.62588
Copyright (c) .NET Foundation and contributors. All rights reserved.
Xamarin 4.10.0.442 (396b18cef)
Visual Studio extension to enable development for Xamarin.iOS and Xamarin.Android.
Xamarin Designer 4.12.264 (fc37cd02e)
Visual Studio extension to enable Xamarin Designer tools in Visual Studio.
Xamarin.Android SDK 8.3.0.19 (HEAD/342b2ce96)
Xamarin.Android Reference Assemblies and MSBuild support.
Xamarin.iOS and Xamarin.Mac SDK 11.10.1.177 (7e782c1)
Xamarin.iOS and Xamarin.Mac Reference Assemblies and MSBuild support.
Log File
The text was updated successfully, but these errors were encountered: