jborean
jborean
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
Welp it turns out I had "dotnet.server.useOmnisharp": true set in my VSCode SSH remote settings but not local so I thought I wasn't using O# but it in fact was. Removed that and things start working magically
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
Opened https://github.com/dotnet/vscode-csharp/issues/7911, worst that can happen is they say no
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
I would also love to use Rider but VSCode's remote ssh extension is miles ahead (it actually works on my host) than Rider's equivalent
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
DevKit is marked as optional and while I agree it has new features it is documented that the plain C# extension should work just fine for normal analysis without any VS subscription
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
Looks like it is ok in the dev kit so yes sounds like a bug they need to fix in the standard analyser
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
Unfortunately an explicit LangVersion didn't help
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
Ok, will look at submitting an issue on the extension then
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
As in newer features only come to the dev kit one or just it gets more attention support wise from MS?
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
But it is up to date
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
I'm not using the dev kit, just the plain C# extension
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
<Project Sdk="Microsoft.NET.Sdk">

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
<PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.IO.Pipelines" Version="9.0.0" />
</ItemGroup>

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

<PropertyGroup>
<TargetFramework>net9.0</TargetFramework>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<Nullable>enable</Nullable>
<PublishTrimmed>true</PublishTrimmed>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="System.IO.Pipelines" Version="9.0.0" />
</ItemGroup>

</Project>
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
To be clear it has
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
the csproj has net9.0
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
It’s complaining thinking ROS can’t be used in the Func but it can be since the latest C# version
28 replies
CC#
Created by jborean on 1/8/2025 in #help
How to fix VSCode Error/Warning for valid code
Sorry that was just me copy/pasting wrong, it’s definitely there
28 replies
CC#
Created by jborean on 11/20/2024 in #help
Using stackalloc span in if statement
ah ok, that makes more sense as I was wracking my brain to figure out how it could have escaped it. Putting scope ... entry did the trick though so thank you very much
5 replies
CC#
Created by jborean on 11/20/2024 in #help
Using stackalloc span in if statement
Thanks I appreciate, I'll have to read through that post as I don't understand how it could be used outside of its valid context but maybe that's just my misunderstanding of spans really
5 replies
CC#
Created by jborean on 4/28/2024 in #help
AssemblyLoadContext LoadfromAssemblyPath vs LoadFromNativeImagePath
Thanks, appreciate the explanation!
8 replies
CC#
Created by jborean on 4/28/2024 in #help
AssemblyLoadContext LoadfromAssemblyPath vs LoadFromNativeImagePath
Ah ok, explains why pwzNIPath was never actually used there. So there were cases where you could have had 2 files for an assembly to load?
8 replies
CC#
Created by jborean on 4/28/2024 in #help
AssemblyLoadContext LoadfromAssemblyPath vs LoadFromNativeImagePath
I can see both end up calling AssemblyNative_LoadFromPath where the assemblyPath arg is the pwzILPath and nativeImagePath is pwzNIPath but it seems like the latter is not used at all in that situation?
8 replies