Inedo Community Forums Forums
    • Recent
    • Tags
    • Popular
    • Login

    Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.

    If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!

    Nuget .net 4.6

    Scheduled Pinned Locked Moved Support
    buildmasternugetnet
    4 Posts 1 Posters 9 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • ? This user is from outside of this forum
      Guest
      last edited by

      Hi,

      Does the nuget buildmaster extension support .net 4.6? If I try and pack a project that is using c# 6 syntax it does not compile. I've remedied this by first compiling it with the Build MSBuild Project action but it is nice to not have the extra step.

      Product: BuildMaster
      Version: 4.7.4

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        We haven't tested this yet, but I don't see why it shouldn't work. As far as I know NuGet.exe just invokes msbuild itself. It could be because we are including an older version of NuGet.exe in the NuGet extension and using that by default. You can tell it to use a different NuGet.exe by going to the extension configuration page for the NuGet extension and creating a new configuration profile.

        1 Reply Last reply Reply Quote 0
        • ? This user is from outside of this forum
          Guest
          last edited by

          Hi Dean,

          I actually did test using an external nuget library which was the latest version (3.*). This didn't solve the problem either. Invoking this nuget.exe directly did work correctly to compile c# 6. Are you possible passing in flags by default to nuget to indicate a compilation preference?

          1 Reply Last reply Reply Quote 0
          • ? This user is from outside of this forum
            Guest
            last edited by

            Here are the commands/switches that would be run ...

            https://github.com/Inedo/bmx-nuget/blob/master/CreatePackage.cs#L83]

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • First post
              Last post
            Inedo Website Home • Support Home • Code of Conduct • Forums Guide • Documentation