I'm having some issues at running CNTK on c# wrapper. I see rold2007 had success on doing the same thing. There got to be something simple that I missed. Any advice would be greatly appreciated.
The steps I used are as follow:
use the source code from C#
generate a new dos application and copy the new code to it.
building the program, the following error occurred at line
using (var model = new IEvaluateModelManagedF())
Wit error message:
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'IEvaluateModelManagedF' could not be found (are you missing a using directive or an assembly reference?)
VS version: vs community 2015
OS: windows 10.
CNTK: Downloaded binary. Able to run a sample program.
Your project needs to reference EvalWrapper.dll. In the same directory as the DLL, you need to have a list of other DLLs that are used. See the detailed discussion on the CNTK GitHub page. If you are running a CPU-only build, this is the list of DLLs:
EvalDll.dll
EvalWrapper.dll
libacml_mp_dll.dll
libifcoremd.dll
libifportmd.dll
libiomp5md.dll
libmmd.dll
Math.dll
svml_dispmd.dll
Update
CNTK has switched from ACML to Intel MKL as of August 2016 (see Release Notes). After this change, the list of required DLLs is
EvalDll.dll
EvalDll.lib
EvalWrapper.dll
Math.dll
libiomp5md.dll
mkl_cntk_p.dll
Related
Myself as well as my coworkers all started seeing this problem sometime in the last few weeks:
Build FAILED
CSC : warning CS8032: An instance of analyzer My.Company.Generators.ReportingV2Generator cannot be created from /Users/work/dev/git/reporting-model/src/My.Company.Generators/bin/Debug/netstandard2.1/My.Company.Generators.dll : Could not load file or assembly 'Microsoft.CodeAnalysis, Version=3.10.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified.. [/Users/work/dev/git/reporting-model/src/My.Team.Models.ReportingV2/My.Team.Models.ReportingV2.csproj]
/Users/work/dev/git/reporting-model/src/My.Company.Api/SmokeTests/Tests/ContentAskExpertSmokeTest.cs(7,20): error CS0234: The type or namespace name 'Models' does not exist in the namespace 'My.Team' (are you missing an assembly reference?) [/Users/work/dev/git/reporting-model/src/My.Company.Api/My.Company.Api.csproj]
...
Many more of the above "type or namespace" errors
...
This happens on both macOS and Windows. It works on Linux (both on a personal machine and inside mcr.microsoft.com/dotnet/sdk:5.0.
Literally none of the source generator code / csproj has changed, it started spontaneously around two weeks ago. I can reproduce this on a commit from two months ago too, so it seems like something might have changed externally in the packages?
I found the solution for this by going to Microsoft directly.
The error on the failure case is that the generator is dependent on Microsoft.CodeAnalysis.dll version 3.10, and 3.10 only shipped in 5.0.300. It appears that your success case is using SDK 5.0.300 but the failure case is using 5.0.204.
You have two options to fix this:
If you're not using any of the features introduced in 3.10 for source generators, you can lower the Microsoft.CodeAnalysis nuget package target to 3.9
Ensure that all builds are using at least 5.0.300 version of the SDK
https://github.com/dotnet/roslyn/issues/54710
I am trying to build a project using visual studio as well as MSBuild.exe. When the code is built using visual studio, there are no issues and the build runs successfully, but when built through MSBuild.exe, the following error is thrown - "The type or namespace name 'eCom' could not be found in the global namespace". This error is being recorded from various lines in the code, couple of the erroneous lines have been written below:
protected global::eCom.Web.DataViewExtender view3Extender;
and
using eCom.Web;
The dll for 'eCom' is successfully getting created on the server.
Recently dot net framework 4.6.2 was installed on the build server, I wonder if that has anything to do with the error.
I'm using MSVS2015Pro for Xamarin.
I downloaded the project: https://github.com/Clans/FloatingActionButton
But I'm getting an error on:
using Clans.Fab;
It says:
Severity Code Description Project File Line Suppression State
Error CS0246 The type or namespace name 'Clans' could not be found (are you missing a using directive or an assembly reference?) FAB.Sample D:\Xamarin\FloatingActionButton-Xamarin.Android\FAB.Sample\FloatingActionMenuBehavior.cs 5 Active
as you can see on the following image:
[EDIT]
On the following image you have more details on errors:
My question is:
how can I debug these kind of errors?, I mean, not this one specifically but when there are using errors in general?. How can I know what: Clans.Fab; specifically is needed and from where do I have to download it?
[EDIT]
Then I did:
PM> Install-Package FAB.XamarinAndroid
and the errors disappeared and now I have 255 warnings.
Any idea on how to fix these warnings?
Below you have an screenshot with them:
Any idea on how to get rid of these warnings?
Visual Studio projects you download from github should contains all external references pointing to nuget packages and you restore them on first build (unless project is not configured to restore on build).
Local references are either framework references you should have installed on your machine or other projects inside the solution.
Normally a missed class will be paired with a yellow exlamation symbol on references list indicating that a necessary assembly could not be loaded, that could be a first check to do.
Output window from build could also provide insights about any anomaly related to references.
I am currently working on windows application in c# and currently I met one problem.
I started to creating the windows application in notepad++ because I not able to use VS. I am using cmd to compile the code. I will add that I have one *.dll file, which is used by the application.
Now I am trying to move my code to VS. I created new solution and I used add existing item to include my code files. I also added reference to the *.dal file. I also added using namespace statment in my MainForm.cs file. Now I get problem because when I am tryind go tompile the code I got error:
The type or namespace name 'DataAccessLayer' could not be found
(are you missing a using directive or an assembly reference?)
I am wondering where I made mistake?
Original post here.
In the project properties, change the Dotnet framework from 2.0,3.0 or 3.5 to 4, compile and run!
I'm trying to build an application in C# that parses (using ANTLR) a C source file and returns me an AST with all the functions and stuff.
I did what was explained here : http://www.antlr.org/wiki/pages/viewpage.action?pageId=557075#
But after doing all that when I try and compile I get the following errors:
The type or namespace name 'GrammarRuleAttribute' could not be found (are you missing a using directive or an assembly reference?)
I have antlr-3.4 and antlrworks-1.4.3.jar
I've used the dll that are in the \antlr-3.4\runtime\CSharp2\dist\DOT-NET-runtime-3.1.3.zip and just noticed now that they are supposed to be for ANTLR 3.1.3
What could cause my problem, I must say I'm a bit lost so many versions
i had the same problem. using the runtime libs provided here and CSharp3 target with antlr 3.4 worked for me. the problem is that the runtime libs comming with antlr-3.4 for CSharp2 target are out of date. i did not try, but maybe building the runtime libs from source is another option that could help.