You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm making this post in case the dev team wants to review Visual Studio 2019 compatibility with this generator.
This generator has absolute no issues for this particular problem when I ran it in VS2022.
( Earlier in development, I had an issue where tests passed in VS2022, and failed in VS2019 when calling CopyFileEx, so I finished development in 2022, and was about to re-test in 2019 when this stopped me. )
Expected behavior
The generator should work for either studio.
Repro steps
This was working without issue (and passing unit tests) when compiled in VS2022.
Open project up in VS2019
Clean Solution
Trimmed the target frameworks down to net48 and net5.0 for targeted testing (this was done to all projects in the repo)
Build >> Error
For what its worth, I was able to compile and pass the tests I was concerned with after downgrading to CSWin32 v0.3.49-beta
( I did have to whip up a quick extension method fix in RoboSharp.Extensions.SymbolicLinkSupport.SymbolicLink)
private static Span<char> AsSpan(this MSWin.Wdk.__char_1 ch, int length)
{
#if NETFRAMEWORK
Span<char> r = new char[length];
ch.CopyTo(r, length);
return r;
#else
return ch.AsSpan();
#endif
}
this brief workaround makes sense, as VariableLengthInlineArray did not exist in v0.3.49-beta
Actual behavior
I'm making this post in case the dev team wants to review Visual Studio 2019 compatibility with this generator.
This generator has absolute no issues for this particular problem when I ran it in VS2022.
( Earlier in development, I had an issue where tests passed in VS2022, and failed in VS2019 when calling CopyFileEx, so I finished development in 2022, and was about to re-test in 2019 when this stopped me. )
Expected behavior
The generator should work for either studio.
Repro steps
This was working without issue (and passing unit tests) when compiled in VS2022.
For what its worth, I was able to compile and pass the tests I was concerned with after downgrading to CSWin32 v0.3.49-beta
( I did have to whip up a quick extension method fix in RoboSharp.Extensions.SymbolicLinkSupport.SymbolicLink)
this brief workaround makes sense, as
VariableLengthInlineArray
did not exist in v0.3.49-betaNativeMethods.txt
content:NativeMethods.json
content (if present): N/AAny of your own code that should be shared?
Link to the github repo : https://github.com/RFBomb/RoboSharp/tree/AsyncCopy
relevant portions of the CSProj file:
Generated Code:
Context
LangVersion
9The text was updated successfully, but these errors were encountered: