microsoft / prose

Microsoft Program Synthesis using Examples SDK is a framework of technologies for the automatic generation of programs from input-output examples. This repo includes samples and sample data for the Microsoft Program Synthesis using Example SDK.
https://microsoft.github.io/prose/
Other
620 stars 100 forks source link

Error in Building ProseSample.sln #43

Closed tkbala closed 4 years ago

tkbala commented 4 years ago

I am trying to build ProseSample.sln, but I get the following error

The type or namespace name 'Language' does not exist in the namespace 'ProseSample.Substrings'

I had downloaded the master branch of the repository from GitHub. Then Opened the ProseSample.sln file using Visual Studio 2019. Then I changed the Target framework to .NET Core 3.1 for 'ProseSample', 'ProseSample.Substrings', 'ProseSample.Substrings.Semantics' and 'ProseSample.TextExtraction'.

I also verified that the following NuGet packages are installed for the project: Microsoft.ProgramSynthesis, Microsoft.ProgramSynthesis.Common, Microsoft.ProgramSynthesis.Compiler and Microsoft.ProgramSynthesis.Dslctargets

danpere commented 4 years ago

I get the same error in Visual Studio if I don't build from the command-line first (dotnet build ProseSamples.sln). If you have already built from Visual Studio, you may have to clean first (git clean -fdx will clean everything). Hopefully this workaround should get you working for now.

dslc (the DSL compiler part of PROSE) involves being a bit too fancy with MSBuild so it acts strangely like that sometimes, sorry.

tkbala commented 4 years ago

Great! This works! Thanks @danpere :D