• I'm working on a native C++ game using DirectX. I started the game with Visual Studios 2012 RC, and was running Windows 8 Release Preview.
    Now I've upgraded to the 90 day trial of Windows 8 RTM, and am having problems with my game.

    C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V110\Microsoft.CppCommon.targets(1129,5): error MSB6006: "fxc.exe" exited with code 1.

    Any hep?

    Tuesday, October 02, 2012 1:28 PM


All replies

  • <FXC
            Condition                    = "'@(FxCompile)' != '' and '%(FxCompile.ExcludedFromBuild)'!='true'"
            Source                       = "%(FxCompile.Identity)"
            ToolPath                     = "$(FXCToolPath)"
            AdditionalIncludeDirectories = "%(FxCompile.AdditionalIncludeDirectories)"
            SuppressStartupBanner        = "%(FxCompile.SuppressStartupBanner)"
            EntryPointName               = "%(FxCompile.EntryPointName)"
            TreatWarningAsError          = "%(FxCompile.TreatWarningAsError)"
            ShaderType                   = "%(FxCompile.ShaderType)"
            ShaderModel                  = "%(FxCompile.ShaderModel)"
            PreprocessorDefinitions      = "%(FxCompile.PreprocessorDefinitions)"
            HeaderFileOutput             = "%(FxCompile.HeaderFileOutput)"
            ObjectFileOutput             = "%(FxCompile.ObjectFileOutput)"
            AssemblerOutput              = "%(FxCompile.AssemblerOutput)"
            AssemblerOutputFile          = "%(FxCompile.AssemblerOutputFile)"
            VariableName                 = "%(FxCompile.VariableName)"
            AdditionalOptions            = "%(FxCompile.AdditionalOptions)"
            DisableOptimizations         = "%(FxCompile.DisableOptimizations)"
            EnableDebuggingInformation   = "%(FxCompile.EnableDebuggingInformation)"
            TrackerLogDirectory          = "%(FxCompile.TrackerLogDirectory)"
            TrackedInputFilesToIgnore    = "@(FxCompileNoDependencies)"
            TrackFileAccess              = "$(TrackFileAccess)"
            MinimalRebuildFromTracking   = "%(FxCompile.MinimalRebuildFromTracking)"
        <WriteLinesToFile File="$(TLogLocation)$(ProjectName).write.1.tlog" Lines="@(FxCompile->'^%(Identity)');@(FxCompile->MetaData('HeaderFileOutput')->FullPath()->Distinct());@(FxCompile->MetaData('ObjectFileOutput')->FullPath()->Distinct());@(FxCompile->MetaData('AssemblerOutputFile')->FullPath()->Distinct())"/>
    This seems to be the point at where the Microsoft.CppCommon.targets errors. Unfortunately, I don't know much about this.
    Tuesday, October 02, 2012 1:30 PM
  • Following links may help you


    Migrating your Release Preview app to Windows 8

    Tuesday, October 02, 2012 3:13 PM
  • I've looked that document up and down, there's no mention of my issue or anything related.
    Tuesday, October 02, 2012 3:48 PM
  • Since this is a tool in DX SDK, try ask in the DirectX forum at http://xboxforums.create.msdn.com/forums/default.aspx?GroupID=7.

    Visual C++ MVP

    Tuesday, October 02, 2012 7:20 PM
  • check folder name, no spaces, and should not too long.

    Win8 Developer QQ Group 95331609

    Wednesday, October 03, 2012 8:38 AM
  • Hi,

    I found a solution here

    Does it solve your issue?

    Best regards,

    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    Monday, October 08, 2012 3:16 AM
  • Note that since you specifically started with the RC and upgraded to RTM, you may have hit some kind of setup issue. You coul try uninstalling the Windows 8.0 SDK on your system and reinstalling it from the stand-alone release.


    This is not an issue with the FXC HLSL compiler itself but some kind of MSBuild setup/registration issue.

    Monday, October 08, 2012 5:45 PM
  • Thanks for everyone's help, I ended up creating a new project and copying and pasting the code.
    Tuesday, October 09, 2012 8:49 PM