.NET version on build

Nikita's Avatar

Nikita

01 Nov, 2015 01:19 PM

Hi
I have some problems with .net version
in my .csproj file i have:
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> <TargetFrameworkVersion>v4.5.1</TargetFrameworkVersion>

but in AppVeyor build console i have:
Microsoft (R) Build Engine version 12.0.31101.0
[Microsoft .NET Framework, version 4.0.30319.42000]
Copyright (C) Microsoft Corporation. All rights reserved.
 
And because of this i have some problems with library which is worked only on .net 4.5 and higher
How i can set the version of .net in appveyor.yml or somewhere else?
Thank you

  1. Support Staff 1 Posted by Feodor Fitsner on 01 Nov, 2015 04:42 PM

    Feodor Fitsner's Avatar

    Both 4.5.1, 4.5.2 (and even 4.6) are in-place updates to .NET 4.0, so it's shown as "4.0". 4.5.1 and 4.5.2 are installed on build workers. You may want to use this guide to check that: https://msdn.microsoft.com/en-CA/library/hh925568(v=vs.110).aspx

    What error do you get?

  2. 2 Posted by Nikita on 01 Nov, 2015 06:23 PM

    Nikita's Avatar

    Thanks for response.
    I get specific error for library:
     error MC3074: The tag 'PieChart' does not exist in XML namespace 'clr-namespace:De.TorstenMandelkow.MetroChart;assembly=De.TorstenMandelkow.MetroChart'
    I find the source of the error: .net 4.0
    if i build this project on my pc with .net 4.0 i get this error, but when i build with .net 4.5 i don't have this error.
    I know that 4.5.1 and 4.5.2 are installed on AppVeyor build workers, but "4.0" in console baffled me.
    Thanks for answer, maybe i'll find another source of the problem :)

  3. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:01 AM.

Comments are currently closed for this discussion. You can start a new one.

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