Skip to content
This repository has been archived by the owner on Aug 22, 2018. It is now read-only.

Broken project after Paradox Studio update #10

Closed
Monokiro opened this issue Sep 5, 2014 · 17 comments
Closed

Broken project after Paradox Studio update #10

Monokiro opened this issue Sep 5, 2014 · 17 comments
Milestone

Comments

@Monokiro
Copy link

Monokiro commented Sep 5, 2014

As I've said, after updating studio to fresh version, my project dependencies become unavailable.
I think the new path looks wrong.

@xoofx
Copy link

xoofx commented Sep 5, 2014

What version is running in Paradox Studio?
Could you post the content of the file C:\ProgramData\Silicon Studio Corp\Paradox\Targets\SiliconStudio.Common.targets as it should have a property:

    <SiliconStudioPackageParadoxVersion Condition="'$(SiliconStudioPackageParadoxVersionInvalid)' == 'true'">1.0.0-alpha07</SiliconStudioPackageParadoxVersion>

This file is automatically included by each Paradox projects and is updated by the Paradox Studio when performing a new install

@Monokiro
Copy link
Author

Monokiro commented Sep 5, 2014

Paradox version is 1.0.0-alpha7.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" InitialTargets="CheckPackages">
  <PropertyGroup>
    <SiliconStudioPackageParadoxVersionSaved>$(SiliconStudioPackageParadoxVersion)</SiliconStudioPackageParadoxVersionSaved>
    <SiliconStudioPackageParadoxVersionInvalid Condition="'$(SiliconStudioPackageParadoxVersion)' == '' or !Exists('..\GamePackages\Paradox.$(SiliconStudioPackageParadoxVersion)\Targets\Paradox.targets')">true</SiliconStudioPackageParadoxVersionInvalid>
    <SiliconStudioPackageParadoxVersion Condition="'$(SiliconStudioPackageParadoxVersionInvalid)' == 'true'">1.0.0-alpha07</SiliconStudioPackageParadoxVersion>
  </PropertyGroup>
  <Target Name="CheckPackages">
    <Warning Condition="'$(SiliconStudioPackageParadoxVersionInvalid)' == 'true'" Text="Package Paradox with version [$(SiliconStudioPackageParadoxVersionSaved)] not found. Use version $(SiliconStudioPackageParadoxVersion) instead" />
  </Target>
  <Import Project="..\GamePackages\Paradox.$(SiliconStudioPackageParadoxVersion)\Targets\Paradox.targets" Condition="Exists('..\GamePackages\Paradox.$(SiliconStudioPackageParadoxVersion)\Targets\Paradox.targets')" />
</Project>

@xoofx
Copy link

xoofx commented Sep 5, 2014

Hm you really have reloaded your solution? I can't understand how you get a path error of 1.0.0-alpha05, as we are storing this information only in the above target file, and your project should automatically reference this file. There is something wrong somewhere...

@Monokiro
Copy link
Author

Monokiro commented Sep 5, 2014

123
There is no path error. How can I show parts of screenshots?

Got it. Take a look.

@xoofx
Copy link

xoofx commented Sep 5, 2014

When you click on the property of a SiliconStudio referenced assemblies, what are there paths?

@Monokiro
Copy link
Author

Monokiro commented Sep 5, 2014

C:\ProgramData\Silicon Studio Corp\Paradox\GamePackages\Paradox.1.0.0-alpha05\Targets\..\Bin\Windows-Direct3D11\SiliconStudio.Core.dll

Isn't dots looks strange?

@xoofx
Copy link

xoofx commented Sep 5, 2014

Hm, this should not happen, unless you have not close and open your solution, or the csproj has been modified. Can you post the content of your game .csproj?

@Monokiro
Copy link
Author

Monokiro commented Sep 5, 2014

Where I've made something wrong?

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.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')" />
  <PropertyGroup>
    <MinimumVisualStudioVersion>10.0</MinimumVisualStudioVersion>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{1EFA1FEE-9BE5-4FF0-BDF3-AC93C930790A}</ProjectGuid>
    <OutputType>Library</OutputType>
    <AppDesignerFolder>Properties</AppDesignerFolder>
    <RootNamespace>Test2</RootNamespace>
    <AssemblyName>Test2.Game</AssemblyName>
    <DefaultLanguage>en-US</DefaultLanguage>
    <FileAlignment>512</FileAlignment>
    <ProjectTypeGuids>{786C830F-07A1-408B-BD7F-6EE04809D6DB};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids>
    <TargetFrameworkProfile>Profile111</TargetFrameworkProfile>
    <TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
    <BaseIntermediateOutputPath>obj\</BaseIntermediateOutputPath>
  </PropertyGroup>
  <PropertyGroup>
    <SiliconStudioCurrentPackagePath>$(MSBuildThisFileDirectory)..\Test2.pdxpkg</SiliconStudioCurrentPackagePath>
    <SiliconStudioPackageProps>$([System.IO.Path]::ChangeExtension('$(SiliconStudioCurrentPackagePath)', '.props'))</SiliconStudioPackageProps>
    <SiliconStudioProjectType>Library</SiliconStudioProjectType>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <DefineConstants>DEBUG;TRACE;SILICONSTUDIO_PLATFORM_WINDOWS;SILICONSTUDIO_PLATFORM_WINDOWS_DESKTOP</DefineConstants>
    <SiliconStudioPlatform>Windows</SiliconStudioPlatform>
    <SiliconStudioParadoxGraphicsApi>Direct3D11</SiliconStudioParadoxGraphicsApi>
    <SiliconStudioBuildProfile>Windows</SiliconStudioBuildProfile>
    <OutputPath>..\Bin\Windows-Direct3D11\Debug\</OutputPath>
    <IntermediateOutputPath>obj\Windows\Debug\</IntermediateOutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <DebugType>pdbonly</DebugType>
    <Optimize>true</Optimize>
    <DefineConstants>TRACE;SILICONSTUDIO_PLATFORM_WINDOWS;SILICONSTUDIO_PLATFORM_WINDOWS_DESKTOP</DefineConstants>
    <SiliconStudioPlatform>Windows</SiliconStudioPlatform>
    <SiliconStudioParadoxGraphicsApi>Direct3D11</SiliconStudioParadoxGraphicsApi>
    <SiliconStudioBuildProfile>Windows</SiliconStudioBuildProfile>
    <OutputPath>..\Bin\Windows-Direct3D11\Release\</OutputPath>
    <IntermediateOutputPath>obj\Windows\Release\</IntermediateOutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
  </PropertyGroup>
  <ItemGroup>
    <!-- A reference to the entire .NET Framework is automatically included -->
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Effects\Test2EffectMain.cs">
      <AutoGen>True</AutoGen>
      <DesignTime>True</DesignTime>
      <DesignTimeSharedInput>True</DesignTimeSharedInput>
      <DependentUpon>Test2EffectMain.pdxfx</DependentUpon>
    </Compile>
    <None Include="Effects\Permutations.pdxfxlib" />
    <None Include="Effects\Test2EffectMain.pdxfx">
      <Generator>ParadoxShaderKeyGenerator</Generator>
      <LastGenOutput>Test2EffectMain.cs</LastGenOutput>
    </None>
    <Compile Include="Test2Game.cs" />
    <Compile Include="Properties\AssemblyInfo.cs" />
    </ItemGroup>
  <Import Project="$(MSBuildExtensionsPath32)\Microsoft\Portable\$(TargetFrameworkVersion)\Microsoft.Portable.CSharp.targets" />
  <Import Project="$(SiliconStudioPackageProps)" Condition="Exists('$(SiliconStudioPackageProps)')" />
  <Import Project="$(SiliconStudioParadoxDir)\Targets\SiliconStudio.Common.targets" Condition="Exists('$(SiliconStudioParadoxDir)\Targets\SiliconStudio.Common.targets')" />
  <Target Name="EnsureSiliconStudioParadoxInstalled" BeforeTargets="PrepareForBuild">
    <Error Condition="'$(SiliconStudioParadoxDir)' == ''" Text="Paradox SDK was not found. Check Paradox is installed and the global env variable [SiliconStudioParadoxDir] is setup correctly" />
    <Error Condition="!Exists('$(SiliconStudioParadoxDir)\Targets\SiliconStudio.Common.targets')" Text="Invalid Paradox SDK installation. Target file [$(SiliconStudioParadoxDir)\Targets\SiliconStudio.Common.targets] was not found." />
  </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>

@xoofx
Copy link

xoofx commented Sep 5, 2014

Unless the solution was not closed and reopened in Visual Studio, I can't see why you get this behavior...

@Monokiro
Copy link
Author

Monokiro commented Sep 5, 2014

But it was. So many times.

@xoofx
Copy link

xoofx commented Sep 5, 2014

Could you turn on "diagnostic" on build (in Visual Studio (Menu Tools/Options/Projects And Solutions/Build And Run/MS project build output verbosity), and build the Game.csproj project and post the full Visual Output log?

@Monokiro
Copy link
Author

Monokiro commented Sep 5, 2014

That's strange. Project builds and runs correctly. But Intellisense keep telling me about missing references.

@xoofx
Copy link

xoofx commented Sep 5, 2014

Ah, ok, close your Visual Studio and remove a suo files that is stored along your sln.

@Monokiro
Copy link
Author

Monokiro commented Sep 5, 2014

Perfect. What I should not do in the future to avoid this?

@xoofx
Copy link

xoofx commented Sep 5, 2014

Do the same, remove the suo :)

I'm not sure we can do something about this. This is the default behavior of VS. I suspect that if you have Resharper, you don't need to do this.

@xoofx xoofx closed this as completed Sep 5, 2014
@ArtiomCiumac
Copy link

I confirm that removing *.suo files helps to resolve this issue. I have VS 2013 with ReSharper and had exactly same problem - solution is building fine, but everything else - doesn't and IntelliSense goes crazy.

@xen2
Copy link
Contributor

xen2 commented Sep 8, 2014

Reopening because in new Visual Studio Package, after Paradox update, it will automatically "touch" those files by updating write time, so that VIsual Studio offers to reload them and discards IntelliSense cache (seems like a bug in Visual Studio, MSBuild inside VS evaluates fine, but not VS itself).

This will be part of next release (alpha08).

@xen2 xen2 reopened this Sep 8, 2014
@xen2 xen2 added this to the alpha08 milestone Sep 8, 2014
stride-bot pushed a commit that referenced this issue Nov 25, 2016
…benlitz/base_removal

* commit '05f85eabf8aa2c002176f657d4e6f754989c2ea9':
  [Assets] Removed UnloadableAssetTracker and moved AssetTracker to Assets assembly for future use by AssetSourceTracker and AssetDependencyManager
  [Assets] Removed unecessary KeyValuePairSerializer
  [Core] Made ITypeDescriptor.this[] throw exception if no member found, and added a ITypeDescriptor.TryGetMember for the non-throwing case
  [Logging] Improved ToString() for log messages
  [Yaml] Error recovery: default to Unknown type so that error messages make sense
  [Reflection] ObjectDescriptor this[] operator was not consistent when an entry was not found (throwing if empty, not throwing if not)
  [Quantum] Rewrote GraphNodePath.From() to not include last target or index
  [Editor] Remove empty lines added by mistake at the end of DefaultPropertyTemplateProviders
  [Editor] Reworked thumbnail generation, logging & error reporting
  [Assets] CompilerApp: remove unloadable objects when loading packages
  [Assets] Tests: Added tests for IUnloadable
  [Assets] Properly remove IUnloadable objects from Assets before saving them to dependency manager and sending them to thumbnail and preview
  [Editor] Added IUnloadable to generalize previous UnloadableComponent
  [Editor] Rewrote assembly reloader to work on any object using Quantum. Still need to add a new mechanism equivalent to UnloadableComponent.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants