UWP Built fresh project doesn't work (VS project unloaded), and duplicate assimp.dll

Ouverte
#388 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

Personne n'a encore pris cette issue.

Évaluation

Difficulté
4/5
Temps estimé
3-5 jours
Accessibilité débutants
42/100
Type d'issue
Bug
Clarté
Plutôt claire
Activité
À l'abandon
Stack technique
csharp, unity

Piste de recherche

Reproduce the fresh Unity 2021.3.15 project and inspect the generated testproject.vcxproj around the duplicate assimp.dll entry. Review the URDF importer and ROS TCP Connector asmdef files and their UWP platform settings, then compare the generated project with the pick-and-place project. Done means the solution loads in Visual Studio and can deploy to HoloLens 2.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Description

Describe the bug
A fresh Unity project with imported URDF package builds an sln does throws errors and can't be used to deploy in Hololens 2.

After building in Unity, I open the .sln project but the UWP project says unloaded)

image

The only error shown in VS2022 v17.4.3
C:\Temp\testproject\Build-Dev\testproject\testproject.vcxproj : error : Cannot load project with duplicated project items: C:\Temp\testproject\Build-Dev\testproject\assimp.dll is included as 'None' and as 'None' item types.

To Reproduce
Steps to reproduce the behavior:

  1. Create new fresh Unity project Unity 2021.3.15 (all tested versions outlined below) switch to URP, set .NET Framework api compatibility
  2. Add ROS TCP Connector and URDF importer packages from url.
  3. Build for release, add scene, open visual studio .sln project, the UWP project can't be deployed, VS says project unloaded and VS shows error . VS2022 17.4.3
image image

Only 1 error shown in VS output window:
C:\Temp\testproject\Build-Dev\testproject\testproject.vcxproj : error : Cannot load project with duplicated project items: C:\Temp\testproject\Build-Dev\testproject\assimp.dll is included as 'None' and as 'None' item types.

  1. Move URDF importer into assets/packages as https://github.com/Unity-Technologies/Unity-Robotics-Hub/issues/215 leads to same error result. After moving the folder I also made sure Unity-Robotics-Hub\tutorials\pick_and_place\PickAndPlaceProject\Library\PackageCache\com.unity.robotics.ros-tcp-connector@c27f00c6cf\Runtime\Unity.Robotics.ROSTCPConnector.asmdef includes Platform UWP
  2. Moving also ROS TCP Connector package as in 5 above also continues to show same error in VS. After moving the folder I also changed Unity-Robotics-Hub\tutorials\pick_and_place\PickAndPlaceProject\Packages\com.unity.robotics.urdf-importer@https://github.com/Unity-Technologies/URDF-Importer/commit/90f353e4352aae4df52fa2c05e49b804631d2a63\Runtime\Unity.Robotics.URDFImporter.asmdef to include Platform UWP
  3. Also tried Regenerate Project files but has the same error:
image
  1. I also tried selecting Editor and UWP, but also only UWP in asimpNet.dll as per this suggestion but the same error happens.
image

I also tried deleting the Library, vcxproj but didn't make any difference to the error result.

Console logs / stack traces
The only error shown in VS is as shown above. Unity does not show any errors when building.

Expected behavior
VS sln opens so we can deploy to Hololens 2.

Screenshots
If applicable, add screenshots or videos to help explain your problem.

Environment (please complete the following information, where applicable):

Unity Version: Unity 2021.3.15f1, Unity 2020.3.11, Unity 2022.1.24
Visual Studio 2022 v17.4.3
Unity machine OS + version: Windows 11 Pro, v 10.0.22.621 Build 22621
ROS machine OS + version: Didn't launch it because the problem is built project by Unity doesn't work
ROS–Unity communication: n/a
Branch or version:
image

Additional context
Can't use this package for UWP builds for Hololens 2.
Bug also posted at URDF importer
Also if this pickandplace project is opened fresh and try to build for UWP (.NET Framework) the same error occurs.

Langage dominant
C#
Étoiles
2.6k
Forks
473
Métriques de merge des PR
Aucune PR mergée en 30 j

Préparer son environnement

  • Aucun Dockerfile ni fichier Docker Compose
  • Propose un modèle de pull request
  • Aucun guide de contribution

Par où commencer

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. Ouvrez une pull request qui référence le numéro de l'issue.

Autres issues de Unity-Technologies/Unity-Robotics-Hub

Toutes les issues de Unity-Technologies/Unity-Robotics-Hub

Issues similaires

Plus d'issues C#

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.