-
Notifications
You must be signed in to change notification settings - Fork 7
Open
Labels
bugSomething isn't workingSomething isn't working
Description
Type: Bug
Version: TwinPack 1.4.3
Reproducible: Yes
TwinPack offers the option to create the config.json file through the IDE as follows:

However if during creation of the config.json a Nuget repository is configured after the Beckhoff repository,
and "all repositories" is selected
the libraries belonging to the Nuget repository are erroneously added as "reference" instead of "package" and with the prefix TwinCAT.XAE.PLC, which is usually reserved for Beckhoff Repositories, as shown below:
"plcs": [
{
"version": "1.0.0",
"distributor-name": "TestCompany",
"name": "TestPlc",
"title": "TestLib",
"type": "Application",
"frameworks": {
"zeugwerk": {
"version": "",
"references": [],
"repositories": [
"https://framework.zeugwerk.dev/Distribution"
],
"hide": false,
"qualified-only": true
}
},
"packages": [],
"references": {
"*": [
"TwinCAT.XAE.PLC.Lib.TestLibrary=*"
]
},
On the other hand, if the Beckhoff Repository is deactivated
or if the nuget repository is explicitly selected before creating the config.json
then config.json is created correctly:
"plcs": [
{
"version": "1.0.0",
"distributor-name": "TestCompany",
"name": "TestPlc",
"title": "TestLib",
"type": "Application",
"frameworks": {
"zeugwerk": {
"version": "",
"references": [],
"repositories": [
"https://framework.zeugwerk.dev/Distribution"
],
"hide": false,
"qualified-only": true
}
},
"packages": [
{
"version": null,
"name": "TestLibrary",
"branch": "main",
"target": "TC3.1",
"configuration": "Release",
"distributor-name": "TestCompany"
}
],
"references": {
"*": []
},
Attached is
- the TpZip test project used to file the bug report
- the TestLibrary used in the test project and .nuspec from which the package was generated
- the correct and wrong config.json files generated
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working