Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Visual Studio Project file not generated correctly

Discussion in 'Editor & General Support' started by RHoogland, Feb 17, 2016.

  1. RHoogland

    RHoogland

    Joined:
    Jan 24, 2015
    Posts:
    30
    Does anyone know what is wrong with the Visual Studio Project File below ? I created it with Unity 5.2.0 but Visual Studio 2015 cannot load it. This should have been a universal Windows 10 app, generated as follows:

    build.png

    This is the generated project file for Visual Studio:

    <?xml version="1.0" encoding="utf-8"?>
    <Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
    <Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
    <Import Project="..\UnityCommon.props" />
    <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{13a45c13-3265-47b8-bc48-a553b569df55}</ProjectGuid>
    <OutputType>AppContainerExe</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>testWindows10</RootNamespace>
    <AssemblyName>testWindows10</AssemblyName>
    <DefaultLanguage>en-US</DefaultLanguage>
    <TargetPlatformIdentifier>UAP</TargetPlatformIdentifier>
    <TargetPlatformVersion>10.0.10586.0.0</TargetPlatformVersion>
    <TargetPlatformMinVersion>10.0.10240.0</TargetPlatformMinVersion>
    <MinimumVisualStudioVersion>14</MinimumVisualStudioVersion>
    <EnableDotNetNativeCompatibleProfile>true</EnableDotNetNativeCompatibleProfile>
    <FileAlignment>512</FileAlignment>
    <ProjectTypeGuids>{A5A43C5B-DE2A-4C0C-9213-0A381AF9435A};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
    <PackageCertificateKeyFile>WSATestCertificate.pfx</PackageCertificateKeyFile>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|ARM'">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\ARM\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;UNITY_METRO;UNITY_WSA;UNITY_UWP;UNITY_WSA_10_0</DefineConstants>
    <NoWarn>;2008</NoWarn>
    <DebugType>full</DebugType>
    <PlatformTarget>ARM</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|ARM'">
    <OutputPath>bin\ARM\Release\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP;UNITY_METRO;UNITY_WSA;UNITY_UWP;UNITY_WSA_10_0</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>ARM</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>false</UseDotNetNativeToolchain>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Master|ARM'">
    <OutputPath>bin\ARM\Master\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP;UNITY_METRO;UNITY_WSA;UNITY_UWP;UNITY_WSA_10_0</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>ARM</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\x64\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;UNITY_METRO;UNITY_WSA;UNITY_UWP;UNITY_WSA_10_0</DefineConstants>
    <NoWarn>;2008</NoWarn>
    <DebugType>full</DebugType>
    <PlatformTarget>x64</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'">
    <OutputPath>bin\x64\Release\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP;UNITY_METRO;UNITY_WSA;UNITY_UWP;UNITY_WSA_10_0</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>x64</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>false</UseDotNetNativeToolchain>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Master|x64'">
    <OutputPath>bin\x64\Master\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP;UNITY_METRO;UNITY_WSA;UNITY_UWP;UNITY_WSA_10_0</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>x64</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x86'">
    <DebugSymbols>true</DebugSymbols>
    <OutputPath>bin\x86\Debug\</OutputPath>
    <DefineConstants>DEBUG;TRACE;NETFX_CORE;WINDOWS_UWP;UNITY_METRO;UNITY_WSA;UNITY_UWP;UNITY_WSA_10_0</DefineConstants>
    <NoWarn>;2008</NoWarn>
    <DebugType>full</DebugType>
    <PlatformTarget>x86</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x86'">
    <OutputPath>bin\x86\Release\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP;UNITY_METRO;UNITY_WSA;UNITY_UWP;UNITY_WSA_10_0</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>x86</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>false</UseDotNetNativeToolchain>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Master|x86'">
    <OutputPath>bin\x86\Master\</OutputPath>
    <DefineConstants>TRACE;NETFX_CORE;WINDOWS_UWP;UNITY_METRO;UNITY_WSA;UNITY_UWP;UNITY_WSA_10_0</DefineConstants>
    <Optimize>true</Optimize>
    <NoWarn>;2008</NoWarn>
    <DebugType>pdbonly</DebugType>
    <PlatformTarget>x86</PlatformTarget>
    <UseVSHostingProcess>false</UseVSHostingProcess>
    <ErrorReport>prompt</ErrorReport>
    <Prefer32Bit>true</Prefer32Bit>
    <UseDotNetNativeToolchain>true</UseDotNetNativeToolchain>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Platform)' == 'x64'">
    <UnityBits>64</UnityBits>
    </PropertyGroup>
    <PropertyGroup Condition="'$(Platform)' != 'x64'">
    <UnityBits>32</UnityBits>
    </PropertyGroup>
    <ItemGroup>
    <!-- A reference to the entire .Net Framework and Windows SDK are automatically included -->
    <None Include="project.json" />
    <SDKReference Include="Microsoft.VCLibs, Version=14.0">
    <Name>Visual C++ 2015 Runtime for Universal Windows Platform Apps</Name>
    </SDKReference>
    </ItemGroup>
    <ItemGroup>
    <ApplicationDefinition Include="App.xaml">
    </ApplicationDefinition>
    <Compile Include="App.xaml.cs">
    <DependentUpon>App.xaml</DependentUpon>
    </Compile>
    <Page Include="MainPage.xaml">
    <Generator>MSBuild:Compile</Generator>
    <SubType>Designer</SubType>
    </Page>
    <Compile Include="MainPage.xaml.cs">
    <DependentUpon>MainPage.xaml</DependentUpon>
    </Compile>
    <Content Include="Assets\MediumTile.scale-100.png">
    </Content>
    <Content Include="Assets\SmallLogo.scale-100.png">
    </Content>
    <Content Include="Assets\SplashScreen.scale-100.png">
    </Content>
    <Content Include="Assets\StoreLogo.scale-100.png">
    </Content>
    <Content Include="Assets\WideTile.scale-100.png">
    </Content>
    <Compile Include="Properties\AssemblyInfo.cs">
    </Compile>
    <Content Include="Properties\Default.rd.xml">
    </Content>
    <Reference Include="UnityEngine">
    <HintPath>.\UnityEngine.dll</HintPath>
    </Reference>
    <Reference Include="WinRTLegacy">
    <HintPath>.\WinRTLegacy.dll</HintPath>
    </Reference>
    <Reference Include="UnityEngine.UI">
    <HintPath>.\UnityEngine.UI.dll</HintPath>
    </Reference>
    <Reference Include="UnityEngine.Networking">
    <HintPath>.\UnityEngine.Networking.dll</HintPath>
    </Reference>
    <Content Include="Data\**" />
    </ItemGroup>
    <ItemGroup>
    <AppxManifest Include="Package.appxmanifest">
    <SubType>Designer</SubType>
    </AppxManifest>
    <None Include="WSATestCertificate.pfx" />
    </ItemGroup>

    <ItemGroup>
    <ProjectReference Include="D:/4.Projects/gameBike/1.Unity/TestWindows10/testWindows10/Assets\..\Assembly-CSharp-uwp.csproj">
    <Project>{FBA57953-C0C3-F9D8-E86A-9F7C063B5FDE}</Project>
    <Name>Assembly-CSharp-uwp</Name>
    <Private>False</Private>
    </ProjectReference>
    <ProjectReference Include="D:/4.Projects/gameBike/1.Unity/TestWindows10/testWindows10/Assets\..\Assembly-CSharp-firstpass-uwp.csproj">
    <Project>{194D914D-0664-444E-B663-4D0F1C80AF68}</Project>
    <Name>Assembly-CSharp-firstpass-uwp</Name>
    <Private>False</Private>
    </ProjectReference>
    </ItemGroup> <ItemGroup>
    <Reference Include="UnityPlayer">
    <SpecificVersion>False</SpecificVersion>
    <HintPath>..\Players\UAP\$(PlatformTarget)\$(Configuration)\UnityPlayer.winmd</HintPath>
    </Reference>
    <Reference Include="WinRTBridge">
    <SpecificVersion>False</SpecificVersion>
    <HintPath>..\Players\UAP\$(PlatformTarget)\$(Configuration)\WinRTBridge.winmd</HintPath>
    </Reference>
    <Reference Include="BridgeInterface">
    <SpecificVersion>False</SpecificVersion>
    <HintPath>..\Players\UAP\$(PlatformTarget)\$(Configuration)\BridgeInterface.winmd</HintPath>
    </Reference>
    <Reference Include="UnityEngineDelegates">
    <SpecificVersion>False</SpecificVersion>
    <HintPath>..\Players\UAP\$(PlatformTarget)\$(Configuration)\UnityEngineDelegates.winmd</HintPath>
    </Reference>
    <Reference Include="UnityEngineProxy">
    <SpecificVersion>False</SpecificVersion>
    <HintPath>..\Players\UAP\$(PlatformTarget)\$(Configuration)\UnityEngineProxy.dll</HintPath>
    </Reference>
    </ItemGroup>
    <PropertyGroup Condition=" '$(VisualStudioVersion)' == '' or '$(VisualStudioVersion)' &lt; '14.0' ">
    <VisualStudioVersion>14.0</VisualStudioVersion>
    </PropertyGroup>
    <Import Project="$(MSBuildExtensionsPath)\Microsoft\WindowsXaml\v$(VisualStudioVersion)\Microsoft.Windows.UI.Xaml.CSharp.targets" />
    <ItemGroup>
    <UnprocessedFile Include="$(ProjectDir)Unprocessed\*" />
    </ItemGroup>
    <Target Name="BeforeResolveReferences" Condition="'$(BuildingProject)' == 'true'">
    <Message Importance="high" Text="UnityInstallationDir &quot;$(UnityInstallationDir)&quot;." />
    <Message Importance="high" Text="UnityWSAPlayerDir &quot;$(UnityWSAPlayerDir)&quot;." />
    <Message Importance="high" Text="UnityProjectDir &quot;$(UnityProjectDir)&quot;." />
    <Message Importance="high" Text="Copying unprocessed assemblies..." />
    <Copy SourceFiles="@(UnprocessedFile)" DestinationFolder="$(ProjectDir)" />
    <Copy SourceFiles="$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Unprocessed\Assembly-CSharp.dll" DestinationFiles="$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Assembly-CSharp.dll" />
    <Copy SourceFiles="$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Unprocessed\Assembly-CSharp.pdb" DestinationFiles="$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Assembly-CSharp.pdb" Condition="Exists('$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Unprocessed\Assembly-CSharp.pdb')" />
    <Copy SourceFiles="$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Unprocessed\Assembly-CSharp-firstpass.dll" DestinationFiles="$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Assembly-CSharp-firstpass.dll" />
    <Copy SourceFiles="$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Unprocessed\Assembly-CSharp-firstpass.pdb" DestinationFiles="$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Assembly-CSharp-firstpass.pdb" Condition="Exists('$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Unprocessed\Assembly-CSharp-firstpass.pdb')" />
    </Target>
    <Target Name="BeforeCompile" Condition="'$(BuildingProject)' == 'true'">
    <Message Importance="high" Text="Running AssemblyConverter..." />
    <Exec Command="&quot;$(UnityWSAToolsDir)\AssemblyConverter.exe&quot; -platform=uap -lock=&quot;$(ProjectDir)project.lock.json&quot; -bits=$(UnityBits) -path=&quot;.&quot; -path=&quot;..\Players\UAP\$(PlatformTarget)\$(Configuration)&quot; &quot;$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Assembly-CSharp.dll&quot; &quot;$(UnityProjectDir)\bin\UWP\$(PlatformName)\$(ConfigurationName)\Assembly-CSharp-firstpass.dll&quot; &quot;$(ProjectDir)UnityEngine.dll&quot; &quot;$(ProjectDir)UnityEngine.UI.dll&quot; &quot;$(ProjectDir)UnityEngine.Networking.dll&quot;" />
    <Message Importance="high" Text="AssemblyConverter done." />
    </Target>
    <!-- To modify your build process, add your task inside one of the targets below and uncomment it.
    Other similar extension points exist, see Microsoft.Common.targets.
    <Target Name="BeforeBuild">
    </Target>
    <Target Name="AfterBuild">
    </Target>
    -->
    </Project>
     
    Last edited: Feb 17, 2016