Posts

Showing posts with the label visual-studio-2017

Why vsnwprintf missing

Why vsnwprintf missing I using vsnprintf for ansi string and it works well, returns -1 only on error and returns count of needen size if it does not fit into buffer. I need same function for wide strings, vsnwprintf just not exists. I also tried _vsnwprintf , but it acts really different, it returns -1 even if buffer too small, while I need to know how much to expand a buffer, but only when it's necessary, I don't want to make dummy calls just to determine needen size and only then expand a buffer. vsnprintf -1 vsnwprintf _vsnwprintf If look at vsnprintf code: vsnprintf int const _Result = __stdio_common_vsprintf( _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_STANDARD_SNPRINTF_BEHAVIOR, _Buffer, _BufferCount, _Format, NULL, _ArgList); return _Result < 0 ? -1 : _Result; While _vsnwprintf approximately has: int const _Result = __stdio_common_vswprintf( _CRT_INTERNAL_LOCAL_PRINTF_OPTIONS | _CRT_INTERNAL_PRINTF_LEGACY_VSPRINTF_NULL_TERMINATION, _B...

The current .NET SDK does not support targeting .NET Standard 2.0 error in Visual Studio 2017 update 15.3

Image
The current .NET SDK does not support targeting .NET Standard 2.0 error in Visual Studio 2017 update 15.3 I want to create a class library project with Target Framework .NET Standard 2.0. I've updated my Visual Studio 2017 to Version 15.3 and also in Visual Studio installer checked ".NET Framework 4.7 SDK" and ".NET Framework 4.7 targeting pack" manually and installed them. There is still no .NET Standard 2.0 option in Target Framework combobox in Project/Application window. So I changed TargetFramework tag in .csproj file manually to netstandard2.0 , but after trying to build I get this error: netstandard2.0 The current .NET SDK does not support targeting .NET Standard 2.0. Either target .NET Standard 1.6 or lower, or use a version of the .NET SDK that supports .NET Standard 2.0. Do you have a global.json file pinning your .NET Core SDK to 1.x? Have you installed the .NET Core 2.0 SDK separately? (I'd expect it to be includ...

npm references in Visual Studio 2017: how to deal with “exclamation - not-istalled”

Image
npm references in Visual Studio 2017: how to deal with “exclamation - not-istalled” Situation: I have tried: 1. "VS/Solution Explorer/npm/context-right-click-menu/Restore Packages.." 2. npm install 3. npm install kind-of (concreate not installed package) nothing helps. Actually I'm not suffer from it, but feel I need to know what is going on. 1 Answer 1 npm init fix this and other asterix problems (together or without del npm_modules , npm istall ). npm init del npm_modules npm istall I do not know why we should time to time repeat npm init but this works. npm init By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.