Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

VS 2015 Win10 Universal 8.1 target sln error / bug!

Discussion in 'Windows' started by zezba9000, Jul 31, 2015.

  1. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    983
    Have a fresh install of Windows 10 and VS 2015 installed. Both Unity 5.1.2 and Unity 5.2 beta4 give the error below when trying to build a fresh Universal 8.1 app from Unity3D.


    Anyone else hitting this bug? Looks like Unity proj files are bad and VS 2015 is hitting it. While it shouldn't have this kind of error in VS maybe there is a bug in both VS 2015 and Unity.

    Here is the text from the log file:
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Did you try creating just an empty project from VS to confirm the installation isn't borked?
     
  3. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    983
    Ya blank Universal 8.1 app created from VS 2015 works and compiles just fine. Only when I open one created from Unity does it mess up.

    Win10 Universal apps open fine though when created from Unity (they just don't build yet as you already know).
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Alright, thanks. We'll look into it.
     
  5. AncientLotus

    AncientLotus

    Joined:
    Feb 20, 2015
    Posts:
    13
    I'm hitting the same issue. Has there been a solution/work around?
     
  6. zezba9000

    zezba9000

    Joined:
    Sep 28, 2010
    Posts:
    983
    My guess is the fix will be in Unity 5.2, did you try beta 5: https://unity3d.com/unity/beta
     
  7. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Beta 5 has no such fix yet. We're still trying to reproduce it locally: couldn't do it on 2 machines already.

    A workaround for now would be to install and use VS2013 to build Universal projects, or build Store 8.1 and Phone 8.1. I'll let you know once we have more details on the issue.
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Hey, here's an update: our QA managed to reproduce it. However, it seems that this error is merely a cosmetic one: pressing build builds the project successfully. Could you confirm it works for you too?
     
  9. Joel-Santos

    Joel-Santos

    Joined:
    Feb 23, 2010
    Posts:
    121
    Hi there. I can confirm that this also happens to me and I don't think this is only cosmetic as the Shared Code project fails to load. I have tried making a clean build and still facing the same issue.
    upload_2015-8-11_2-42-24.png
     
  10. janestap

    janestap

    Joined:
    Dec 5, 2014
    Posts:
    1
    I'm having the exact same error. Fresh install of Windows 10 and Unity 5.1.2f1 Personal.

    Any solution?
     
  11. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,672
    Is this the latest VS 2015 RTM ?
     
  12. Tonasz

    Tonasz

    Joined:
    Jan 16, 2013
    Posts:
    1
    I have exactly the same problem as reported above. The frest install of lates Unity 5.1.2f1 Personal and Visual Studio 2015 Community.

    As you see in attached file, shared project can't load (error and log the same as OP has). I checked and I could build a working game and manifests are not shared so a game is somehow possible to be published... but changing some shared scripts for ads control is something I currently seek.
     

    Attached Files:

  13. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,672
    Please fill a bug report, and please specify exact VS 2015 version, you can get it from Help->About menu.
     
  14. PotRemus

    PotRemus

    Joined:
    Jun 8, 2015
    Posts:
    1
    I have exactly the same problem,

    config:
    - VS 2013 12.0.31101.00 Update 4
    - VS 2015 14.0.23107.0 D14REL
    - Unity 5.1.1f1 Personal
    - Visual Studio 2013 + 2015 Tools

    I open the project build on Visual Studio 2013 or 2015, there is the same mistake.
    I also recreate the .scproj and .sln in the Unity project
     
  15. dondon2

    dondon2

    Joined:
    Dec 6, 2013
    Posts:
    1
    We have also the same issue with unity 5.2.0f3 and visual studio 2015.

    At the start up we receive the same error as already mentioned.
    The shared project has the status "loading..." and does not change anymore.


    Here the exact versions of all installed tools with Vistual Studio:

    Microsoft Visual Studio Community 2015
    Version 14.0.23107.0 D14REL
    Microsoft .NET Framework
    Version 4.6.00079

    Installed Version: Community

    Visual Basic 2015 00322-20000-00000-AA475
    Microsoft Visual Basic 2015

    Visual C# 2015 00322-20000-00000-AA475
    Microsoft Visual C# 2015

    Visual C++ 2015 00322-20000-00000-AA475
    Microsoft Visual C++ 2015

    Windows Phone SDK 8.0 - ENU 00322-20000-00000-AA475
    Windows Phone SDK 8.0 - ENU

    Application Insights Tools for Visual Studio Package 1.0
    Application Insights Tools for Visual Studio

    ASP.NET and Web Tools 14.0.20626.0
    ASP.NET and Web Tools

    ASP.NET Web Frameworks and Tools 2013 5.2.30624.0
    For additional information, visit http://www.asp.net/

    Common Azure Tools 1.5
    Provides common services for use by Azure Mobile Services and Microsoft Azure Tools.

    GenerateUnitTest 1.0
    Generates unit test code for methods in classes under test.

    Microsoft Azure Mobile Services Tools 1.4
    Microsoft Azure Mobile Services Tools

    Microsoft MI-Based Debugger 1.0
    Provides support for connecting Visual Studio to MI compatible debuggers

    NuGet Package Manager 3.0.0
    NuGet Package Manager in Visual Studio. For more information about NuGet, visit http://docs.nuget.org/.

    PreEmptive Analytics Visualizer 1.2
    Microsoft Visual Studio extension to visualize aggregated summaries from the PreEmptive Analytics product.

    SQL Server Data Tools 14.0.50730.0
    Microsoft SQL Server Data Tools

    Visual C++ for Cross Platform Mobile Development 1.0
    Visual C++ for Cross Platform Mobile Development

    Visual C++ for Cross Platform Mobile Development 1.0
    Visual C++ for Cross Platform Mobile Development

    Visual Studio Tools for Universal Windows Apps 14.0.23121.00 D14OOB
    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.
     
  16. Grisu1004

    Grisu1004

    Joined:
    Aug 25, 2015
    Posts:
    7
    Same situtation on my side - VS 2015, Unity Personal 5.1.1 (x64). Built Project for Windows Store, Universal 8.1 and got this error.
     
  17. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,672
    Seems some changes in VS2015 triggers this issue both in VS 2013 and VS 2015.

    Anyways, the ones who has this failure, can you try this:
    * open <project>\<project>.Shared\<project>.Shared.projItems
    * find places like this <DependentUpon>$(MSBuildThisFileDirectory)<file>.xaml</DependentUpon> and remove $(MSBuildThisFileDirectory)

    For ex.,
    Code (csharp):
    1.  
    2. <DependentUpon>$(MSBuildThisFileDirectory)App.xaml</DependentUpon>
    3.  
    change to

    Code (csharp):
    1.  
    2. <DependentUpon>App.xaml</DependentUpon>
    3.  
    and see if that helps
     
  18. Grisu1004

    Grisu1004

    Joined:
    Aug 25, 2015
    Posts:
    7
    Ok, trying what Tomas1856 mentioned worked half way.
    The shared project is loaded now, but the two other projects now have problems - they cannot find the two files app.xaml and mainpage.xaml (which reside in the shared project).

    The file "<project>\<project>.Windows\App.xaml" could not be found.
     
  19. Kroolyk

    Kroolyk

    Joined:
    Jan 24, 2014
    Posts:
    1
    Just remove those two lines in *.projItems file of Shared subproject :

    <DependentUpon>$(MSBuildThisFileDirectory)App.xaml</DependentUpon>

    <DependentUpon>$(MSBuildThisFileDirectory)MainPage.xaml</DependentUpon>

    it looks like these definitions are needed only for visual studio to display cs files as submenu for xaml files. I don't know why it casues error in visual studio but it's adding all required files to final project and links them with xaml files without problems.
     
    Carwashh likes this.
  20. Grisu1004

    Grisu1004

    Joined:
    Aug 25, 2015
    Posts:
    7
    Kroolyk is right, worked for me!
     
  21. Carwashh

    Carwashh

    Joined:
    Jul 28, 2012
    Posts:
    746
    Fixed the issue for me too.

    Unity 5.2.1f1
    VS 2015 installed, no other verisons.
    Building WSA Universal 8.1