Don't understand, want to understand. (Server & Client TCP connection)
Yeah I want to understand whats wrong with the code but I don't, so if someone wants to read this and may be able to fix it. It's supposed be a server that creates the exec on the disk with the IP and port inputted.
Here is the error for .NET 7.0:
Unhandled Exception: System.IO.FileNotFoundException: Could not load file or assembly 'System.Private.Corelib, Version=7 .0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e' or one of its dependencies. The system cannot find the file specified.
Ask anything, tag me any time.
12 Replies
that's weird
try pasting here the csproj
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net7.0-windows7.0</TargetFramework>
<Nullable>enable</Nullable>
<ImplicitUsings>enable</ImplicitUsings>
<UseWPF>true</UseWPF>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.CodeAnalysis" Version="4.8.0" />
<PackageReference Include="Microsoft.CodeAnalysis.CSharp" Version="4.8.0" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.3" />
</ItemGroup>
</Project>
you can format code with ```cs instead of just ```
are you sure you have .net sdk installed on every machine you need it?
```cs instead of just``` wdym? I have only tried on my pc and I have installed .net 6.0, 7.0, and 8.0. I have tried 7.0 and 8.0
like this
this is probably an issue with dependencies or with compilation, but i never used this for compiling, atm i don't know
the error were the same.
@dont It worked in memory, I changed it a bit so it ran directly in memory and it worked fine. Any ideas? Do you know anyone that would be good at this?
🤷
maybe i would just try to compile an empty Program with no dependencies to see how it goes and then go from that
like this?:
essentially yes
yeah, I got the same error.
are you sure you got all the dependencies right?
did you took that from an example?
maybe you're missing something
for sure. but don't know what