Publishing package error on assosiasion (Visual Studio) - visual-studio

I have updated my Visual Studio to Update 1. Currently when I am trying to associate the package with my Store package I am getting this error:
Unable to update the package manifest. An unexpected error occurred. (HRESULT: 0x80004003)
Publishing without association works though, but as I launch 'Windows App Certification Kit' I get this error:
Error Found: The app manifest test detected the following errors:◦The
revision number in the app package version and bundle version must be
set to 0, for example Version="10.1.2.0". This is restricted for
Windows Store use only.
Any Ideas?

It seems like a bug in the new Cordova tools, the version in the config.xml (Windows tab) isn't overriding the version of the manual manifest...
So there it is

There's a known problem with VS2015, Update 1 that prevents you from associating a Store app to a Cordova project. Instead, you can choose the option to Create App Packages which will set up the association and allow you to test it as a store app. See also: VS2015 Update 1 Can't Associate Store App

Related

Publishing .NET MAUI app in Visual Studio for Mac

I'm using Visual Studio for Mac 17.4 (Build 2406) and trying to create a package that I can upload to AppStore.
I'm not sure if we can now use Visual Studio to do this or we still need to use the termainal.
This is a .NET 7 based .NET MAUI app so I modified the command I used to use to create a package but it's giving me an error.
The command I used in termainal is:
dotnet publish -f:net7.0-ios -c:Release
This gives me the following error:
A runtime identifier must be specified in order to publish this
What am I missing here?
Looks like, we still create the package through .NET CLI using the following command -- notice the addition of runtime identifier:
dotnet publish -f:net7.0-ios -c:Release /p:RuntimeIdentifier=ios-arm64

DEP0600: Deployment failed. XmlException – Data at the root level is invalid

When I deploy a UWP from VS 2017, I’m seeing the following error:
DEP0600: Deployment failed. XmlException - Data at the root level is invalid. Line 24, position 11.
Any clues on how to resolve?
After much debugging and Binging, an SDE pointed out that I was hitting a known bug in Windows 10 Creators Update – which will be fixed in the upcoming Fall Creators update. At install time, all of the installed package are enumerated to see if the package has already been installed. This enumeration fails if the installed app’s AppxManifest.xml file is malformed.
I had several test apps installed on my machine, some deployed with Visual Studio, some installed with PowerShell using the command:
Add-AppxPackage -Register .\PackageLayout\AppxManifest.xml
After uninstalling several of the test apps, I was able to deploy my app with Visual Studio 2017 without problems.

Windows SDK UWP App Error - DEP3321

I have been battling DEP3321: To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.14393.0 or higher. You currently are running version 10.0.10586.839. Please update your OS, or change your deployment target to a device with the appropriate version. for the past few days.
I have a UWP app which I cannot run on my machine. However, if I select one of the emulators, it runs fine. I have also set the minimum target value which ensures that the app runs, however, the app throws an error as it cannot find some methods in the lower version on the SDK.
I have tried repairing and uninstalling/re-installing both visual studio 2015 and 2017. I have tried the same with the various windows SDK as well. At one point i had three different versions of the SDK installed and visual studio was still complaining even though i had the updated version installed. Currently, I have installed win sdk 10.0.15063.17.
Any ideas what I can do next to resolve this issue. I have trawled various SO pages as well social.msdn pages with no luck.
Many thanks
I just started a new app and selected the highest Target levels and got this error. I was able to get rid of this error by selecting the default minimum Min Target Version as shown below.
I also encountered the same problem
Severity Code Description Project File Line Suppression State
Error DEP3321: To deploy this application, your deployment target should be running Windows Universal Runtime version 10.0.17763.0 or higher. You currently are running version 10.0.17134.648. Please update your OS, or change your deployment target to a device with the appropriate version.
Solution:
Right click on the project property and got to the General-> Target Platform Minimum version.
In my case, I changed it to "10.0.17134.0" by selecting from the drop-down and then rebuilt it.
I worked well. Attached snapshot for reference.
If your app is using APIs that only exist in newer versions of the OS (like 14393 or 15063), then you won't be able to call those on 10586. You will get an exception because the method simply doesn't exist on that machine.
In order to support the app on lower versions of the operating system you will need to wrap the calls to those APIs with an appropriate "IsAPIPresent" check:
https://learn.microsoft.com/en-us/uwp/api/Windows.Foundation.Metadata.ApiInformation
Thanks,
Stefan Wick - Windows Developer Platform
Possible Solution:
I was facing with the EXACT same issue. I have my SDK 15063, and I have installed Visual Studio 2017 afresh, which also installed SDK 15063 implicitly, but I still kept on getting the same deployment error DEP3321.
I solved this issue in this way -
Just go to the "Solution Explorer", on the right side of Visual Studio and do the following steps in this order -
1) Just right click on the project you are deploying
2) Press "Unload Project"
3) Right click on the project_name(unavailable) and press Edit project_name.jsproj. It will open an xml file on left hand side
4) Search for "TargetPlatformVersion" and "TargetPlatformMinVersion". Both are placed next to each other. Mine looked like this -
10.0.15063.0
10.0.15063.0
since mine Error DEP3321 explicitly stated that 'you are currently running version 10.0.14393.1715, so I replaced my "TargetPlatformMinVersion" from 10.0.15063.0 to 10.0.14393.1715 -
10.0.14393.1715
5) Now save it, Ctrl+S
6) Right click on "Solution Explorer" and press Reload Project and press Yes to the popup if you get stating that project is already loaded.
You are done. Just do what you normally do, Build (ctrl+shift+B) and then Debug - F5 or Ctrl+F5.
This way the project got deployed for me.

Can't setup Android SDK on Visual Studio 2015

I just installed my VS2015 enterprise and I want to try "cross platform" or "Android blank App" project, but in both , I got a message box with this error
Value cannot be null
Parameter name:path1
When I try to run Tools/Android /Android SDK Manager I got a Visual Studio error:
Error: Command did not execute uccessfully due to an unexpected exeption.Please check the output window for aditional information
In the error window I got
Xamarin.Android for Visual Studio requires Android SDK. Please set Android SDK path on Tools->Options->Xamarin->Android Settings menu
When I open start/all programs/Android SDK tools/SDK Manager/tools/options
After a while I got this:
It looks like it can't download something, I guess there is no Android SDK installed on my PC.
I've tried disabling my firewall but it's the same, any idea?
Your JDK and Android NDK Locations paths might be properly set but SDK might be not set. Even i had the same problem. I solved it in three steps . If you have the same problem as shown above Image, then follow these steps.
Click on Change, it will show Folders.
Select this Path ****C:\Program Files (x86)\Android\android-sdk****
For all the systems, the SDK will be located in this location only.
Click on Ok. now your Android SDk manager will be in Enable. Your Problem will solve.
Incase your android-sdk not located in this place, then you need to search for android-sdk where it is located.
If you dont find android-sdk in C Drive, it may not be installed properly.
Here we have two Options.
Open vstoolsforxamarin.exe and select the tools which we need and update them (or)
You can install android-sdk manually.
here is the link: https://developer.xamarin.com/guides/android/getting_started/installation/windows/manual_installation/.
My suggestions is don't Uninstall and install VS, its unnecessary headache.
Looks like there is ANDROID SDK manager installed in your machine.
I have same problem with this because our network are behind proxy. What I do is fill in the HTTP proxy server IP and port. Then try to update the components one more time.
This time you will prompted to key in the user name and password for every component that is currently being installed.
Somehow still failed.
So my another attempt is just key in the user name with a blank password. And then its working, and updated of ANDROID SDK components has been done successfully.
I set the path like this: C:\Users\{username}\AppData\Local\Android\Sdk
and the problem solved.
I found the solution in this link.
https://developer.xamarin.com/guides/android/troubleshooting/questions/android-sdk-location/
The adb.exe should be available in android sdk folder. If it is not there then Visual Studio will not detect it.

how to install framework SDK(.NETCore, version=v5)

I recently installed Visual Studio 2015 Community for universal app development, but when ever I create a new project and select the universal app under windows the error pops up saying:
"One or more projects requires a framework SDK(.NETCore v=5.00) that
is either not installed or is included as part of a future update to
visual studio"
In that error box there is a hyperlink mentioned to download the update but it goes right to the Microsoft website's home page.
I read some where to install the .NETCore via nuget package manager console. I have done that it was successful, but again whenever I create a new project it says to install the Framework SDk(.NETCore v5).
I haven't found any solution on this particular error but their were some tutorials to install the .NETCore but they didn't helped me out.
Kindly tell me how to get rid of this, I have wasted almost my 5 days trying to fix this issue.
i actually fixed that issue by First Modifying the setup of vs and their unchecking the Window Universal App development option. it means uninstalling the universal Window App development from visual studio then again modifying the setup i re checked the universal window App development option and update it. that fixed my issue.
You have to install the "Tools and Windows SDK."

Resources