soziapath
soziapath
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
honestly, i think nobdody really had any idea what they were doing. I just recently started working at the company and it's honestly baffling, even my private projects have better structure, testing, etc. But since I'm still pretty new to c#, .net, msbuild etc, I'm not really in for improving things, just wanna finish the current project and then maybe/hopefully have some time for general improvements.
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
they do go to the same folder
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
It still seems to be part of the dependencies in the deps.json, I deleted the build folder, output folder, did a clean and a clean build, still seems to appear in the deps.json
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
Still the same error
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
Thanks a lot for the help! Will try that now...
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
yeah, mostly external code it seems
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
Stack Trace seems to be pretty empty...
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
Honestly, I'm still pretty new to C# in general, never had the time to really understand all the ins and outs, since I had to jump straight into the project...
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
Not my decision sadly, company uses that and would probably break shit it we updated to a newer version
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
I'll try to see if i can get a stacktrace
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
Ah, is just replaced the sensitive stuff with bullshit and let chatgpt make it pretty, guess it replaced opcua as well. AdvancedLibrary is opc.uafx.advanced
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
Ah, sorry, this was the ProjectA.Shared, this is the projectA.csproj:
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<BaseOutputPath>..\..\..\bin</BaseOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\ProjectA.Shared.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
<PackageReference Include="MVTec.HalconDotNet-Windows" Version="22112.0.0" />
<PackageReference Include="Syncfusion.Shared.WPF" Version="20.3.0.49" />
<PackageReference Include="Syncfusion.Themes.Metro.WPF" Version="20.3.0.49" />
</ItemGroup>

</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<BaseOutputPath>..\..\..\bin</BaseOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
</PropertyGroup>

<ItemGroup>
<ProjectReference Include="..\..\ProjectA.Shared.csproj" />
</ItemGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
<PackageReference Include="MVTec.HalconDotNet-Windows" Version="22112.0.0" />
<PackageReference Include="Syncfusion.Shared.WPF" Version="20.3.0.49" />
<PackageReference Include="Syncfusion.Themes.Metro.WPF" Version="20.3.0.49" />
</ItemGroup>

</Project>
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<BaseOutputPath>..\..\..\bin</BaseOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<UseWPF>True</UseWPF>
<PlatformTarget>AnyCPU</PlatformTarget>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="Opc.UaFx.Advanced" Version="2.41.1" />
<PackageReference Include="System.Private.ServiceModel" Version="4.5.3" />
<PackageReference Include="pythonnet" Version="3.0.3" />
<PackageReference Include="Syncfusion.Shared.WPF" Version="20.3.0.49" />
<PackageReference Include="Syncfusion.Themes.Metro.WPF" Version="20.3.0.49" />
<PackageReference Include="System.IO.Ports" Version="7.0.0" />
</ItemGroup>


</Project>
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net6.0-windows</TargetFramework>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<BaseOutputPath>..\..\..\bin</BaseOutputPath>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<UseWPF>True</UseWPF>
<PlatformTarget>AnyCPU</PlatformTarget>
<AllowUnsafeBlocks>True</AllowUnsafeBlocks>
<IsTestProject>true</IsTestProject>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="CommunityToolkit.Mvvm" Version="8.0.0" />
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.0" />
<PackageReference Include="NUnit" Version="3.13.3" />
<PackageReference Include="NUnit3TestAdapter" Version="4.2.1" />
<PackageReference Include="Opc.UaFx.Advanced" Version="2.41.1" />
<PackageReference Include="System.Private.ServiceModel" Version="4.5.3" />
<PackageReference Include="pythonnet" Version="3.0.3" />
<PackageReference Include="Syncfusion.Shared.WPF" Version="20.3.0.49" />
<PackageReference Include="Syncfusion.Themes.Metro.WPF" Version="20.3.0.49" />
<PackageReference Include="System.IO.Ports" Version="7.0.0" />
</ItemGroup>


</Project>
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
I think that would be too much work to pseudonymize all the names while still keeping it functional^^
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
I do have that dependency file and it contains the Dependency
"System.Private.ServiceModel/4.5.3": {
"dependencies": {
"Microsoft.NETCore.Platforms": "3.1.0",
"System.Reflection.DispatchProxy": "4.5.0",
"System.Security.Principal.Windows": "4.7.0"
},
"runtimeTargets": {
"runtimes/unix/lib/netstandard2.0/System.Private.ServiceModel.dll": {
"rid": "unix",
"assetType": "runtime",
"assemblyVersion": "4.5.0.3",
"fileVersion": "4.6.26720.1"
},
"runtimes/win/lib/netstandard2.0/System.Private.ServiceModel.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.5.0.3",
"fileVersion": "4.6.26720.1"
}
}
},
"System.Private.ServiceModel/4.5.3": {
"dependencies": {
"Microsoft.NETCore.Platforms": "3.1.0",
"System.Reflection.DispatchProxy": "4.5.0",
"System.Security.Principal.Windows": "4.7.0"
},
"runtimeTargets": {
"runtimes/unix/lib/netstandard2.0/System.Private.ServiceModel.dll": {
"rid": "unix",
"assetType": "runtime",
"assemblyVersion": "4.5.0.3",
"fileVersion": "4.6.26720.1"
},
"runtimes/win/lib/netstandard2.0/System.Private.ServiceModel.dll": {
"rid": "win",
"assetType": "runtime",
"assemblyVersion": "4.5.0.3",
"fileVersion": "4.6.26720.1"
}
}
},
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
same for me, but not in the root output directory, which seems to be required? Still get the error unless I copy it manually to the same path as the executable
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
Okay, I added it as reference with Version 4.5.3, but I still don't get the dll in the output
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
okay, then at least that is resolved, but the question remains, why I need to add the reference in the first place, since the library has it as dependency
98 replies
CC#
Created by soziapath on 4/26/2024 in #help
System.Private.ServiceModel not found
Ah, yeah, sorry my bad, didn't see the difference in there
Severity Code Description Project File Line Suppression State
Error NU1605 Warning as Error: A downgrade of the "System.Private.ServiceModel" package from 4.5.3 to 4.5.1 has been detected. Refer directly from the project to the package to select a different version.
ProjectA -> ProjectA.Shared -> AdvancedLibrary 2.41.1 -> System.ServiceModel.Primitives 4.5.3 -> System.Private.ServiceModel (>= 4.5.3)
ProjectA -> ProjectA.Shared -> System.Private.ServiceModel (>= 4.5.0.3) ProjectA [path]\ProjectA.csproj
Severity Code Description Project File Line Suppression State
Error NU1605 Warning as Error: A downgrade of the "System.Private.ServiceModel" package from 4.5.3 to 4.5.1 has been detected. Refer directly from the project to the package to select a different version.
ProjectA -> ProjectA.Shared -> AdvancedLibrary 2.41.1 -> System.ServiceModel.Primitives 4.5.3 -> System.Private.ServiceModel (>= 4.5.3)
ProjectA -> ProjectA.Shared -> System.Private.ServiceModel (>= 4.5.0.3) ProjectA [path]\ProjectA.csproj
98 replies