-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[QUESTION] Including own Library (which depends on TcOpen) in Project with TcOpen, how to make it work with Compiler #717
Comments
Hey @RGrabichler you may need to add the following to the <Content Include="_meta\{YourLibraryName}.library" IncludeInPackage="true" Pack="true" PackagePath="lib" CopyToOutputDirectory="PreserveNewest" />
<Content Include="_meta\YourLibraryName.json" IncludeInPackage="true" Pack="true" PackagePath="lib" CopyToOutputDirectory="PreserveNewest" />
<Content Include="_meta\version.info" IncludeInPackage="true" Pack="true" PackagePath="lib" CopyToOutputDirectory="PreserveNewest" />
let me know if that helps |
is this for NuGet Packages? Workflow should be (in 4026 changes) I work on a plc library, then include it in plc project. If i add the above to ny csproj file, do i also have to the the "library Connector" to the Plc Project, |
It will include the metadata in the output (bin) folder of your library (besides packing it into NuGet when packing). The important part is the You will also need to add your library project (connector and plc project) to your solution. If you do not want to do that, then you should release NuGet package and consume that. |
Thanks @PTKu, with the Inclusion of the Library-Connector in my Project and your proposed changes to the .csproj it is working. One Problem, we talked about this earlier, where the "reading identities" not working anymore. |
There seems to be a problem with the ADS library v5 (which is currently unlisted on nuget.org). The issue might be solved when inxton libraries are ported to newer.NET versions. Unfortunatelly, the update brings some breaking changes that need to be solved. There are no immediate plans to update at this point, but we may do the update this fall together with upgrading to 4046. If we decide to port to higher .NET versions, they will remain experimental (as the v5 is). The only supported version remains .NET Framework 4.8. |
I have a Standard Library, which depends on TcOpen internally.
I have a normal Project, where include TcOpen (compiler with net5.0 Library Project and 5.0 Blazor)
As soon as i include my own Library, the "reading identities" will not continue anymore.
How to solve this, perhaps a minimalistic Example, how to solve this.
The text was updated successfully, but these errors were encountered: