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

Unable to find .net 4.0 dir #790

Closed
mynkow opened this issue May 8, 2015 · 6 comments
Closed

Unable to find .net 4.0 dir #790

mynkow opened this issue May 8, 2015 · 6 comments

Comments

@mynkow
Copy link

mynkow commented May 8, 2015

On windows server 2012 I get this message:

Could not find a part of the path 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0'

See this reference: https://support.microsoft.com/en-us/kb/2765375

In other words it is not possible to have 4.0 directory on WinServer2012. Any idea why this is happening?

@forki
Copy link
Member

forki commented May 8, 2015

any ideas where this is happening?

@mynkow
Copy link
Author

mynkow commented May 8, 2015

I suspect ExecProcess

@mynkow
Copy link
Author

mynkow commented May 8, 2015

For now as a temporary solution I did v4.5 => copy/paste/rename => v4.0

@etishor
Copy link

etishor commented May 13, 2015

I run into the same issue. You can try to install windows 7 sdk which contains the v4.0 reference assemblies, but installing win7sdk is a pain (hint: you need to uninstall any vc++ runtime first).

Running fake on a build agent with win 2012 is not very easy at the moment. Is there anything in fake that needs the v4.0 reference assemblies?

I've tried changing the supportedRuntime in fake.exe.config to v4.5, but the error remains.
Even running with a non existing build script triggers the same error:

PS> .\bin\FAKE\tools\FAKE.exe --printdetails non-existing.fsx
Build failed.
Error:
Could not find a part of the path 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.0'.
-------------------
 FAKE usage
-------------------

    fake.exe [<scriptPath>] [<targetName>] [options]

@forki
Copy link
Member

forki commented May 14, 2015

Could you please retry?

@forki
Copy link
Member

forki commented May 14, 2015

More details in #794. Closing this one.

@forki forki closed this as completed May 14, 2015
matthid added a commit to matthid/Yaaf.FSharp.Scripting that referenced this issue May 14, 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

3 participants