Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VS2015 build: unable to resolve Microsoft.Build.Framework #7

Closed
simra opened this issue Oct 7, 2015 · 2 comments
Closed

VS2015 build: unable to resolve Microsoft.Build.Framework #7

simra opened this issue Oct 7, 2015 · 2 comments

Comments

@simra
Copy link
Owner

simra commented Oct 7, 2015

Error:

Unhandled Exception: System.TypeInitializationException: The type initializer for '<StartupCode$IfSharp>.$Evaluation' threw an exception. ---> System.Exception: Error creating evaluation session: System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Build.Framework, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified.
File name: 'Microsoft.Build.Framework, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a'
   at Microsoft.FSharp.Compiler.MSBuildResolver.ResolveCore$cont@266(String targetProcessorArchitecture, String targetFrameworkVersion, FSharpList`1 targetFrameworkDirectories, ResolutionEnvironment resolutionEnvironment, Tuple`2[] references, String outputDirectory, FSharpFunc`2 logWarning, FSharpFunc`2 logMessage, FSharpFunc`2 logError, String implicitIncludeDir, String fsharpCoreExplicitDirOrFSharpBinariesDir, String frameworkRegistryBase, FSharpList`1 explicitIncludeDirs, String assemblyFoldersSuffix, String assemblyFoldersConditions, Boolean allowRawFileName, Unit unitVar)
   at Microsoft.FSharp.Compiler.MSBuildResolver.ResolveCore(ResolutionEnvironment resolutionEnvironment, Tuple`2[] references, String targetFrameworkVersion, FSharpList`1 targetFrameworkDirectories, String targetProcessorArchitecture, String outputDirectory, String fsharpCoreExplicitDirOrFSharpBinariesDir, FSharpList`1 explicitIncludeDirs, String implicitIncludeDir, String frameworkRegistryBase, String assemblyFoldersSuffix, String assemblyFoldersConditions, Boolean allowRawFileName, FSharpFunc`2 logMessage, FSharpFunc`2 logWarning, FSharpFunc`2 logError) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\ReferenceResolution.fs:line 266
   at Microsoft.FSharp.Compiler.MSBuildResolver.Resolve(ResolutionEnvironment resolutionEnvironment, IEnumerable`1 references, String targetFrameworkVersion, FSharpList`1 targetFrameworkDirectories, String targetProcessorArchitecture, String outputDirectory, String fsharpCoreExplicitDirOrFSharpBinariesDir, FSharpList`1 explicitIncludeDirs, String implicitIncludeDir, String frameworkRegistryBase, String assemblyFoldersSuffix, String assemblyFoldersConditions, FSharpFunc`2 logMessage, FSharpFunc`2 logWarning, FSharpFunc`2 logError) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\ReferenceResolution.fs:line 414
   at Microsoft.FSharp.Compiler.CompileOps.Resolve@2949-2(TcConfig tcConfig, ResolveAssemblyReferenceMode mode, range errorAndWarningRange, String targetFrameworkMajorMinor, String targetProcessorArchitecture, String outputDirectory, FSharpList`1 targetFrameworkDirectories, IEnumerable`1 references, Boolean showMessages) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\CompileOps.fs:line 2966
   at Microsoft.FSharp.Compiler.CompileOps.TcConfig.TryResolveLibsUsingMSBuildRules(TcConfig tcConfig, FSharpList`1 originalReferences, range errorAndWarningRange, ResolveAssemblyReferenceMode mode) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\CompileOps.fs:line 2975
   at Microsoft.FSharp.Compiler.CompileOps.TcAssemblyResolutions.Resolve(TcConfig tcConfig, FSharpList`1 assemblyList, FSharpList`1 knownUnresolved) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\CompileOps.fs:line 3391
   at Microsoft.FSharp.Compiler.CompileOps.TcAssemblyResolutions.SplitNonFoundationalResolutions(TcConfig tcConfig) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\CompileOps.fs:line 3417
   at Microsoft.FSharp.Compiler.IncrementalFSharpBuild.GetFrameworkTcImports(TcConfig tcConfig) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\vs\IncrementalBuild.fs:line 1095
   at Microsoft.FSharp.Compiler.Interactive.Shell.FsiEvaluationSession..ctor(FsiEvaluationSessionHostConfig fsi, String[] argv, TextReader inReader, TextWriter outWriter, TextWriter errorWriter, Boolean fsiCollectible) in C:\GitHub\fsharp\FSharp.Compiler.Service\src\fsharp\fsi\fsi.fs:line 2363
@simra
Copy link
Owner Author

simra commented Oct 7, 2015

@simra
Copy link
Owner Author

simra commented Oct 7, 2015

Updated app.config solves the issue.

@simra simra closed this as completed Oct 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant