1

Closed

Wrong project reference resolution on Release mode

description

Visual F# Tools' project system resolves project references to Debug mode although the current project is on Release mode. Here is an excerpt of FSharpProjectOptions that shows the issue:
GetProjectCheckerOptions: ProjectFileName: C:\VFPT\tests\FSharpVSPowerTools.Tests\FSharpVSPowerTools.Tests.fsproj, ProjectFileNames: [|"C:\AppData\Local\Temp.NETFramework,Version=v4.5.AssemblyAttributes.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\ProjectParser.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\ExternalProjectProvider.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\TestHelpers.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\MockDTE.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\Mocks.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\VsTestBase.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\SyntaxConstructClassifierTests.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\ResolveUnopenedNamespaceSmartTaggerTests.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\HighlightUsageTaggerTests.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\FormattingTests.fs";
"C:\VFPT\tests\FSharpVSPowerTools.Tests\DepthTaggerTests.fs"|], FSharpProjectOptions: [|"-o:obj\Release\FSharpVSPowerTools.Tests.dll"; "--debug:pdbonly";
"--noframework"; "--define:TRACE";
"--doc:bin\Release\FSharpVSPowerTools.Tests.XML"; "--optimize+";
"--platform:anycpu";
"-r:C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\EnvDTE.dll";
"-r:C:\Program Files (x86)\Microsoft Visual Studio 10.0\Common7\IDE\PublicAssemblies\EnvDTE80.dll";
"-r:C:\VFPT\packages\Foq\lib\net45\Foq.dll";
"-r:C:\VFPT\packages\FSharp.Compiler.Service\lib\net45\FSharp.Compiler.Service.dll";
"-r:C:\Program Files (x86)\Reference Assemblies\Microsoft\FSharp.NETFramework\v4.0\4.3.0.0\FSharp.Core.dll";
"-r:C:\VFPT\packages\FSharp.ViewModule.Core\lib\net45\FSharp.ViewModule.Core.Wpf.dll";
"-r:C:\VFPT\src\FSharpVSPowerTools.Core\bin\Debug\FSharpVSPowerTools.Core.dll";
"-r:C:\VFPT\bin\FSharpVSPowerTools.dll";
"-r:C:\VFPT\src\FSharpVSPowerTools.Logic\bin\Debug\FSharpVSPowerTools.Logic.dll";
Notice that *.Core.dll and *.Logic.dll refer to their bin\Debug folders.

It sounds strange but this affects Visual F# Power Tools as a client because we rely on resolution information from Visual F# Tools' project system.

Downstream bug report https://github.com/fsprojects/VisualFSharpPowerTools/issues/790
Closed Jan 27, 2015 at 6:14 PM by KevinRansom
Manage on github

comments

latkin wrote Nov 26, 2014 at 12:37 AM

Can you provide a repro solution?