.NET 4.5.2 - Build contains projects using unsupported .NET frameworks
Hi, I'm getting this error message that .NET 4.5.2 is unsupported.
Here is the targetFramework from my Web.Config file:
<system.web>
<authentication mode="None" />
<compilation debug="true" strict="false" explicit="true" targetFramework="4.5.2">
...
</compilation>
<httpRuntime targetFramework="4.5.2" />
...
</system.web>
According to this post, 4.5.2 is supported but maybe I'm missing something - http://blog.appharbor.com/2014/08/28/windows-server-2012-r2-iis-8-5-websockets-and-net-4-5-2
Thanks,
Wayne
Discussions are closed to public comments.
If you need help with AppHarbor please
start a new discussion.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by waynebloss on Sep 14, 2014 @ 11:56 PM
Here are all of the warnings from my build log:
- 2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [D:\temp\csxqcrag.mrb\input\src\web\SFTF.Admin\SFTF.Admin.vbproj]
- 3>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(983,5): warning MSB3644: The reference assemblies for framework ".NETFramework,Version=v4.5.2" were not found. To resolve this, install the SDK or Targeting Pack for this framework version or retarget your application to a version of the framework for which you have the SDK or Targeting Pack installed. Note that assemblies will be resolved from the Global Assembly Cache (GAC) and will be used in place of reference assemblies. Therefore your assembly may not be correctly targeted for the framework you intend. [D:\temp\csxqcrag.mrb\input\src\web\dependencies\Dapper\Dapper.csproj]
- 3>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "C:\Windows\Microsoft.NET\Framework\v4.0.30319\\mscorlib.dll", "x86". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [D:\temp\csxqcrag.mrb\input\src\web\dependencies\Dapper\Dapper.csproj]
- 3>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Data", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [D:\temp\csxqcrag.mrb\input\src\web\dependencies\Dapper\Dapper.csproj]
- 2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3247: Found conflicts between different versions of the same dependent assembly. [D:\temp\csxqcrag.mrb\input\src\web\SFTF.Admin\SFTF.Admin.vbproj]
- 2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Data", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [D:\temp\csxqcrag.mrb\input\src\web\SFTF.Admin\SFTF.Admin.vbproj]
- 2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.EnterpriseServices", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [D:\temp\csxqcrag.mrb\input\src\web\SFTF.Admin\SFTF.Admin.vbproj]
- 2>C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets(1605,5): warning MSB3270: There was a mismatch between the processor architecture of the project being built "MSIL" and the processor architecture of the reference "System.Web", "AMD64". This mismatch may cause runtime failures. Please consider changing the targeted processor architecture of your project through the Configuration Manager so as to align the processor architectures between your project and references, or take a dependency on references with a processor architecture that matches the targeted processor architecture of your project. [D:\temp\csxqcrag.mrb\input\src\web\SFTF.Admin\SFTF.Admin.vbproj]
-
2 Posted by waynebloss on Sep 15, 2014 @ 12:02 AM
It looks like switching to .NET 4.5.1 did the trick.
Could you confirm if .NET 4.5.2 is supposed to be supported and if so, what can I do to target it?
Thanks,
-Wayne
Support Staff 3 Posted by rune on Sep 15, 2014 @ 12:55 PM
Hi,
It looks like you've configured it correctly, so this is a bit odd. Let me look further into this and get back to you asap!
Best,
Rune
4 Posted by rowinginmotion on Sep 25, 2014 @ 12:04 PM
We have the same issue with .NET 4.5.2. The compile/build actually appears to be fine, the issue is reported after build completed:
"Build contains projects using unsupported .NET frameworks"
Any idea what's going on there? Application is analytics.rowinginmotion.com
Support Staff 5 Posted by rune on Sep 26, 2014 @ 07:16 PM
Hi,
This was unfortunately caused by a configuration issue that has prevent deploy engines from actually deploying the apps.
The worker servers and build infrastructure will be swapped this weekend and the configuration hiccup will be resolved by that.
Best,
Rune
rune closed this discussion on Sep 26, 2014 @ 07:16 PM.