Git Product home page Git Product logo

basyx-dotnet-sdk's People

Contributors

constantinziesche avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

basyx-dotnet-sdk's Issues

[Discuss] Change of implementation for SubmodelRepositoryServiceProvider

Currently the Creation of Submodels in the SubmodelRepositoryServiceProvider uses an extension method on the Submodel itself to create the Service Provider for that Submodel. But I consider the creation of the Service Provider the task of the SubmodelRepositoryServiceProvider and not one of the submodel.
Furthermore at the moment you could not inject another implementation into the SubmodelRepositoryServiceProvider that would allow a decision about which implementation to use. So the implementation for the service provideer is fixed then.

So my proposal is the following:

  • Change the implemntation so that a Factory for service providers gets injected via DI
  • The service provider is created using the injected factory
  • The default implementation for the factory is the same realisation as currently with the extension method

This way the old behaviour is preserved and the adpatability is enhanced.

@constantinziesche Is there anything that stands against this approach?

Issue with initializing submodels

Dear all, I am having troubles with cloning the project:

PS C:\Users\-------\source\repos\basyx-dotnet> git submodule update --init --recursive
fatal: remote error: upload-pack: not our ref 42fab265a7fa22660f6ed3595ea0db7ec61751fa
fatal: Fetched in submodule path 'basyx-dotnet-applications', but it did not contain 42fab265a7fa22660f6ed3595ea0db7ec61751fa. Direct fetching of that commit failed.
PS C:\Users\------\source\repos\basyx-dotnet>

Do you have any suggestions for me?

Error for duplicate files in publish output when using .NET 6

Due to a change in .NET 6 publishing an app using BaSyx causes the following error:

dotnet publish -c Release       
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET
Copyright (C) Microsoft Corporation. All rights reserved.

  Determining projects to restore...
  All projects are up-to-date for restore.
  SimpleAssetAdministationShell -> /Users/###/SimpleAssetAdministationShell/bin/Release/netcoreapp3.1/SimpleAssetAdministationShell.dll
/usr/local/share/dotnet/sdk/6.0.101/Sdks/Microsoft.NET.Sdk/targets/Microsoft.NET.ConflictResolution.targets(112,5): error NETSDK1152: Found multiple publish output files with the same relative path:
/Users/###/.nuget/packages/basyx.submodel.server.http/1.0.0/contentFiles/any/netcoreapp3.1/Nlog.config, 
/Users/###/.nuget/packages/basyx.aas.server.http/1.0.0/contentFiles/any/netcoreapp3.1/Nlog.config, 
/Users/###/.nuget/packages/basyx.submodel.server.http/1.0.0/contentFiles/any/netcoreapp3.1/ServerSettings.xml, 
/Users/###/.nuget/packages/basyx.aas.server.http/1.0.0/contentFiles/any/netcoreapp3.1/ServerSettings.xml. 
[/Users/###/SimpleAssetAdministationShell/SimpleAssetAdministationShell.csproj]

The .NET SDK generates a new error (NETSDK1152) in cases where files from different source paths would be copied to the same file path in the publish output.

Use AAS Core Works Generated Code as Base for the Implementation

In order to keep up with changes in the meta model we need to update the underlying meta model to version 3.

The AAS Core Works project (https://github.com/aas-core-works) provides a source code generator and automatically generated code for C# for the meta model V3 8https://github.com/aas-core-works/aas-core3.0-csharp).

It seems reasonable to include this in the implementation to be ready for future meta model updates and corrections.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.