Comments (8)
Hello Ed,
Thank you for trying out Blueprint41 and thank you for reporting the issue!
I think I was able to replicate your issue. I hope this will work for you:
- First compile/build the HelloWorld.Generated project (and make sure you have zero errors).
- Then try to run the custom tool in the HelloWorld.Generated project.
One more thing, I noticed that you're using version 1.0.12 of Blueprint41, which contains a bug thats fixed in version 1.0.13. Please upgrade your Blueprint41 in Visual Studio: Tools -> NuGet Package Manager -> Manage NuGet Packages for Solution -> Updates
Let me know if you need any further assistance.
Good Luck,
Ren
from blueprint41.
from blueprint41.
Hello Ed,
You're right, I am not sure how it got broken and why it was working on my computer at work, but I get the same result on my computer at home... I'll double check & fix the plugin when I have some time (will post here when it's fixed), but for now I can give you a workaround:
Edit the HelloWorld.Model it's project file to include the CopyLocalLockFileAssemblies option. After you edited it, it should look as follows:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<TargetFramework>netstandard2.0</TargetFramework>
<CopyLocalLockFileAssemblies>true</CopyLocalLockFileAssemblies>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Blueprint41" Version="1.*" />
</ItemGroup>
</Project>
Edit the Generated.tt file to look like this:
<#@ template language="C#" hostSpecific="true" debug="true" #>
<#@ assembly name="netstandard, Version=2.0.0.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" #>
<#@ assembly name="$(ProjectDir)..\HelloWorld.Model\bin\Debug\netstandard2.0\System.CodeDom.dll" #>
<#@ assembly name="$(ProjectDir)..\HelloWorld.Model\bin\Debug\netstandard2.0\Blueprint41.dll" #>
<#@ assembly name="$(ProjectDir)..\HelloWorld.Model\bin\Debug\netstandard2.0\HelloWorld.Model.dll" #>
<#@ import namespace="System.IO" #>
<#@ import namespace="Blueprint41.DatastoreTemplates" #>
<#@ output extension=".txt" #>
<#
try
{
Generator.Execute<HelloWorld.Model.Datastore>(
new GeneratorSettings(
Path.GetDirectoryName(Host.TemplateFile),
"Domain.Data"
)
);
#>
Success!
<#
}
catch (Exception e)
{
#>
Error Message: <#= e.Message #>
Stack Trace:
<#= e.StackTrace #>
<#
}
#>
from blueprint41.
Thanks for the work around, it worked. I can move forward with the getting started tutorial.
Ed
from blueprint41.
I found another issue.
I was able to use your workaround and execute Run Custom Tool without error. Went on to Blueprint CRUD. When I try to debug my HelloWorld application the code in HelloWorld Program.cs Main throws an error on the line;
model.Execute(true);
Error Message = There is no procedure with the name blueprint41.functionalid.list
registered for this database instance. Please ensure you've spelled the procedure name correctly and that the procedure is properly deployed.
I searched the Blueprint41 assembly using Visual Studio Object Browser and did not see the functionalid.list property or method.
Am I looking in the right place?
Ed
from blueprint41.
Hello Ed,
I think you didn't install the "Blueprint41 plugin" into Neo4j. Instructions on how to do that can be found here: https://github.com/circles-arrows/blueprint41/wiki/Extension-and-Plugins#neo4j-plugins
The plugin adds functionality to Neo4j for generating unique id's, similar to auto-increment primary keys in relational databases.
The APOC plugin is used by Bluerint41 to implement the free-text search feature. I suspect you can get away with not installing that plugin into Neo4j till you need that functionality.
from blueprint41.
With the help of your work-arounds and my installing addins properly I now have a working console app using Blueprint41, thank you.
Ed
As a suggestion it would be nice if your getting started tutorial had another section to demonstrate how to edit the code in the HelloWorld console app to use the model generated in the Blueprint41 Graph Modeler tutorial.
from blueprint41.
That is great news Ed!
I updated the plugin to solve the issues/bugs you encountered and your suggestion is added to the list of improvements to the getting started documentation.
If you have any more suggestions for the documentation, blueprint41 or the modeller, please let me know. Feedback is vital to improving!
from blueprint41.
Related Issues (20)
- Neo4j V5 Update HOT 4
- Should Blueprint41.Neo4j.Persistence.Void.Neo4jTransaction.Run be doing something? HOT 2
- Issue in running tt file from Visual Studio for Mac HOT 1
- Blueprint41 VSCode plugin
- Blueprint41 Memgraph support
- Enterprise Only features HOT 2
- Support for Node Key Constraint
- Implement MSBuild solution to generating Blueprint41 entity classes instead of via T4 templates HOT 1
- Review datastore backing types
- Optimize deletion of files in the new code generator
- Solution stopped compiling HOT 2
- A bunch'a questions HOT 5
- How to put unique constraints for multiple properties? HOT 1
- Is there any way to create unique constraint involving multiple properties? HOT 1
- Missing "Generate.tt" file HOT 2
- Memgraph Index on unique constraints
- Memgraph unique constraint not created
- Running with github action HOT 1
- Is Blueprint 41 Thread safe ready to be used for web api? HOT 1
- Crash in Neo4jPersistenceProvider#FetchDatabaseInfo HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blueprint41.