SciSharp / BotSharp

The AI Agent Framework in .NET
https://botsharp.readthedocs.io
Apache License 2.0
2.04k stars 422 forks source link

The command '/bin/sh -c dotnet publish /p:PublishProfile=RASA /p:Configuration=RASA --output /app' returned a non-zero code: 1 #8

Closed zengbin93 closed 5 years ago

zengbin93 commented 5 years ago

When I try to build image in docker, got an error like below. How can I solve it?

Classify/ClassifierFactory.cs(1,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/IClassifier.cs(1,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/ITextFeatureExtractor.cs(1,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(19,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(20,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(21,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(22,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(23,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(24,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/SentenceFeatureExtractor.cs(5,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/SVMClassifier.cs(24,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/WordFeatureExtractor.cs(4,16): error CS0234: The type or namespace name 'Algorithm' does not exist in the namespace 'BotSharp' (are you missing an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/ITextFeatureExtractor.cs(14,14): error CS0246: The type or namespace name 'Feature' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(46,22): error CS0246: The type or namespace name 'Probability' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(48,17): error CS0246: The type or namespace name 'MultinomiaNaiveBayes' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/NaiveBayesClassifier.cs(170,21): error CS0246: The type or namespace name 'Feature' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/SentenceFeatureExtractor.cs(12,21): error CS0246: The type or namespace name 'Feature' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
Classify/WordFeatureExtractor.cs(11,21): error CS0246: The type or namespace name 'Feature' could not be found (are you missing a using directive or an assembly reference?) [/source/BotSharp.NLP/BotSharp.NLP.csproj]
  BotSharp.Algorithm -> /app/
  BotSharp.Algorithm.UnitTest -> /source/BotSharp.Algorithm.UnitTest/bin/RASA/netcoreapp2.1/BotSharp.Algorithm.UnitTest.dll
  BotSharp.Algorithm.UnitTest -> /app/
/usr/share/dotnet/sdk/2.1.402/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.Publish.targets(168,5): error MSB3030: Could not copy the file "obj/RASA/netstandard2.0/BotSharp.NLP.dll" because it was not found. [/source/BotSharp.NLP/BotSharp.NLP.csproj]
  BotSharp.Voice -> /source/BotSharp.Voice/bin/Release/netstandard2.0/BotSharp.Voice.dll
  BotSharp.Voice -> /app/
  BotSharp.Vision -> /source/BotSharp.Vision/bin/Release/netstandard2.0/BotSharp.Vision.dll
  BotSharp.Vision -> /app/
The command '/bin/sh -c dotnet publish /p:PublishProfile=RASA /p:Configuration=RASA --output /app' returned a non-zero code: 1
Oceania2018 commented 5 years ago

image