UWP: Folder in AppPackages is different from Package Family Name - deployment

I am developing a UWP app with Visual Studio 2019 Community 16.6.3.
When I run the app in Debug, Visual Studio deploys the app on my machine, creating a folder under
C:\Users\<MY_USER>\AppData\Local\Packages\
but the folder is named differently from the Package Family Name in my Package.appxmanifest.
Therefore (I guess), my connection to the MS Store is not working (I receive an error when I invoke the Store APIs) and also the OneDrive integration is broken.
Please note that my colleagues do not have any problem with the very same code-base (but they are working with Visual Studio 2019 Professional 16.5.5).
Is it a problem of the specific version of Visual Studio or is there anything in my code, in my machine or in my configurations that I should tweak?
Thank you!

Is it a problem of the specific version of Visual Studio or is there anything in my code
Please check if has modified the project's package family name, for the testing Visual Studio 2019 16.7.0 does not reproduce this issue. Please try to update the VS to latest version and delete installed app and re-build again.

Related

Does Windows 10/11 contain the C# Visual runtime routines?

I wrote a small APP using Visual C# and want to donate it, but since I installed Visual Studio in order to develop it, I don't know if the folks installing my APP need to install the C# runtimes or if they are already there.
Also, as I understand it, the.NET run code does come with Windows. Is this correct?
Thank YOU!
I have (2) PCs and used them both to develop by using Visual Studio. Haven't tested w/ a PC that doesn't have it.

Visual Studio not installed and Install Desktop Development with C++ [duplicate]

My Flutter Doctor is saying:
Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all
of its default components.
How can I fix this problem?
It's basically saying that if you want to develop your Flutter application for Windows you will need to install Visual Studio 2022 and while installing Visual Studio 2022 you will need to download this: Desktop development with C++
Also, you have to install the third link in this: Visual-studio
You could also get desktop development with the C++ tool after installing Visual Studio and then navigating to tool → Get tools and features → Desktop development with C++.
The error means install Visual Studio, and this is different from Visual Studio Code. It's an IDE from Microsoft.
For those who may be using a weak computer and can't afford to install the full Visual Studio, you only need to install a few components from Visual Studio to get Flutter to run on your computer without errors. These components are:
MSVC v142 - Visual Studio 2022 C++ x64/86 build tools.
Windows 10 SDK (for Windows 10 users)
C++ CMake tools for Windows.
In total, they should occupy around 8 GB or so.
As it states, you need to download Visual Studio (which is different from Visual Studio Code).
When installing it, remember to select the required package Desktop development with C++:
This will not prevent you from developing Mobile apps, but it's a requirement only for Windows Development.
Is unnecessary to install the "Desktop development with C++" if you don't want to develop desktop applications for Windows using Flutter.
If you only want to develop mobile apps using Flutter, you can run
flutter config --no-enable-windows-desktop
to disable the desktop support for your Flutter projects. After that, when you run the flutter doctor command again, you will no longer see the warning.
Read more at: https://fig.io/manual/flutter/config
Only two steps are required.
Install Visual Studio 2022 (Link: https://visualstudio.microsoft.com/downloads/)
Install Visual Studio Code (Link: https://code.visualstudio.com/)
Your code will run smoothly.
My solution was a bit simpler. Uninstall everything all build system's from VS. Then reinstall Visual Studio Community 2022, restart then try again. Might get a warning about nuget but it should fix the issue.
With the newest android installer "android-studio-2022.1.1.19-windows" there would be a jbr and jre folder existing, hence creating a link from jre to jbr would not work.
What you can do is copy the contents of the items in jbr into the jre folder and this would resolve the error.
Make sure to install Visual Studio Code.
Open the Visual Studio download page:

Visual Studio not installed; this is necessary for Windows development

My Flutter Doctor is saying:
Visual Studio - develop for Windows
X Visual Studio not installed; this is necessary for Windows development.
Download at https://visualstudio.microsoft.com/downloads/.
Please install the "Desktop development with C++" workload, including all
of its default components.
How can I fix this problem?
It's basically saying that if you want to develop your Flutter application for Windows you will need to install Visual Studio 2022 and while installing Visual Studio 2022 you will need to download this: Desktop development with C++
Also, you have to install the third link in this: Visual-studio
You could also get desktop development with the C++ tool after installing Visual Studio and then navigating to tool → Get tools and features → Desktop development with C++.
The error means install Visual Studio, and this is different from Visual Studio Code. It's an IDE from Microsoft.
For those who may be using a weak computer and can't afford to install the full Visual Studio, you only need to install a few components from Visual Studio to get Flutter to run on your computer without errors. These components are:
MSVC v142 - Visual Studio 2022 C++ x64/86 build tools.
Windows 10 SDK (for Windows 10 users)
C++ CMake tools for Windows.
In total, they should occupy around 8 GB or so.
As it states, you need to download Visual Studio (which is different from Visual Studio Code).
When installing it, remember to select the required package Desktop development with C++:
This will not prevent you from developing Mobile apps, but it's a requirement only for Windows Development.
Is unnecessary to install the "Desktop development with C++" if you don't want to develop desktop applications for Windows using Flutter.
If you only want to develop mobile apps using Flutter, you can run
flutter config --no-enable-windows-desktop
to disable the desktop support for your Flutter projects. After that, when you run the flutter doctor command again, you will no longer see the warning.
Read more at: https://fig.io/manual/flutter/config
Only two steps are required.
Install Visual Studio 2022 (Link: https://visualstudio.microsoft.com/downloads/)
Install Visual Studio Code (Link: https://code.visualstudio.com/)
Your code will run smoothly.
My solution was a bit simpler. Uninstall everything all build system's from VS. Then reinstall Visual Studio Community 2022, restart then try again. Might get a warning about nuget but it should fix the issue.
With the newest android installer "android-studio-2022.1.1.19-windows" there would be a jbr and jre folder existing, hence creating a link from jre to jbr would not work.
What you can do is copy the contents of the items in jbr into the jre folder and this would resolve the error.
Make sure to install Visual Studio Code.
Open the Visual Studio download page:

Cannot get unity hololens project to work

I'm trying to get a project to work that i downloaded this link over here, from github.
I've followed all the (configuration) steps in the install guide and i am using the exact versions of the software as described in the guide.
The problem seems to be that some references to the Windows namespace do not work.
I've tried adding it but i can't get it done in the usual way.
The error messages i get when building in unity:
When i open the project in visual studio 2015 update 3 (after building it in unity):
It seems that the option to simply add the reference in visual studio is not present in this kind of project.
I think this shouldn't be to hard to resolve but i lack the skills and experience as i usually develop windows apps solely in visual studio.
EDIT
These are the configurations I used:
i open the project in visual studio 2015 update 3
You should use Visual Studio 2017 with the latest Win10 SDKs.

Hololens device build fails to not finding Assembly-CSharp-firstpass.dll

I'm trying to build Unity application for Hololens device on Visual Studio 2017 and I'm getting the following errors:
Metadata file '...\GeneratedProjects\UWP\Assembly-CSharp-firstpass\bin\x86\Release\Assembly-CSharp-firstpass.dll' could not be found
Metadata file '...\GeneratedProjects\UWP\Assembly-CSharp\bin\x86\Release\Assembly-CSharp.dll'
I'm aware of the similar question here but uninstalling and installing the latest versions of both Unity and VS did not help. Neither did starting a completely new project. I'm using now the latest versions of Unity (2017.1.0f3) and Visual Studio 2017 (15.3.0).
I've tried uninstalling both applications. Everything was working fine yesterday but then I downloaded additional components to Visual Studio (ASP.NET) and the Hololens build stopped working. Any idea how I could fix the issue?
I can see the Assembly-CSharp-firstpass.dll in Unprocessed folder under the path it's searching for it and even tried to copy it to the correct path but it did not help. I have also tried to build the project without ticking the Unity C# Projects but I get a different error then.
Update
I found this post on Unity forums and I think it's the same issue I have: https://forum.unity3d.com/threads/net-scripting-backend-and-visual-studio-2017-3-incompatibility.487833/
A workaround for this issue is to manually modifiying The "UAP,Version=v10.0.xxx" to "UAP,Version=v10.0" In the project.lock.json files of the GeneratedProjects.
Other solutions to this problem include a downgrade to Visual Studio 2015, or using the patch that the link you provided has.