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

CNTK NuGet package doesn't work with new-style csproj format #2346

Closed
alexpolozov opened this issue Sep 14, 2017 · 5 comments
Closed

CNTK NuGet package doesn't work with new-style csproj format #2346

alexpolozov opened this issue Sep 14, 2017 · 5 comments
Assignees
Labels

Comments

@alexpolozov
Copy link

Repro steps: try to create basically a Hello World project using CNTK C# evaluation API:

<Project Sdk="Microsoft.NET.Sdk">

  <PropertyGroup>
    <OutputType>Exe</OutputType>
    <TargetFrameworks>netcoreapp2.0;net461</TargetFrameworks>
  </PropertyGroup>

  <ItemGroup Condition="'$(TargetFramework)' == 'net461'">
    <PackageReference Include="CNTK.CPUOnly" Version="2.1.0" />
  </ItemGroup>

</Project>
using System;
#if NET461
using CNTK;
#endif

namespace TestCntk {
    class Program {
        static void Main(string[] args) {
            Console.WriteLine("Hello World!");
        }
    }
}

It doesn't even link to the right library, even though VS displays the NuGet package as a (conditional) dependency and it's definitely restored locally to the machine.

1>Program.cs(3,7,3,11): error CS0246: The type or namespace name 'CNTK' could not be found (are you missing a using directive or an assembly reference?)
@robinhad
Copy link

The same here for .netcoreapp 2.0

@yiylin
Copy link
Member

yiylin commented May 17, 2018

when will this be fixed?

@davidbrownellWork
Copy link
Contributor

Support for .NET Core 2.0 has been checked into the master branch and will be a part of the next official release.

@lostmsu
Copy link

lostmsu commented Aug 13, 2018

@davidbrownellMS still not in 2.6.0 RCs

@davidbrownellWork
Copy link
Contributor

This issue is being tracked by #2352.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

7 participants