小编Ste*_*Ste的帖子

Visual Studio 2019 - 错误 MSB8020:找不到 Visual Studio 2013 的构建工具

这是我尝试使用的GitHub页面,msbuild.exe但它抛出以下错误:

1>------ Build started: Project: keycastow, Configuration: Debug|Win32 ------
C:\Program Files (x86)\Microsoft Visual Studio\2019\Community\MSBuild\Microsoft\VC\v160\Microsoft.CppBuild.targets(379,5): error MSB8020: The build tools for Visual Studio 2013 (Platform Toolset = 'v120') cannot be found. To build using the v120 build tools, please install Visual Studio 2013 build tools.  Alternatively, you may upgrade to the current Visual Studio tools by selecting the Project menu or right-click the solution, and then selecting "Retarget solution".
========== Build: 0 succeeded, 1 failed, 0 up-to-date, …
Run Code Online (Sandbox Code Playgroud)

msbuild visual-studio

5
推荐指数
1
解决办法
1万
查看次数

通过 PowerShell 更改和更新 Windows 10 中光标的大小

我编写了下面的代码来影响(我认为)是 Windows 10 中唯一负责光标和指针大小的 reg 键。

这是我到目前为止的代码(其中有一些额外的评论):

$RegConnect             = [Microsoft.Win32.RegistryKey]::OpenRemoteBaseKey([Microsoft.Win32.RegistryHive]"CurrentUser", "$env:COMPUTERNAME")
$RegCursorsAccess       = $RegConnect.OpenSubKey("Software\Microsoft\Accessibility", $true)
$RegCursorsControlPanel = $RegConnect.OpenSubKey("Control Panel\Cursors", $true)

# In the code below I'm trying to change the size of the cursor.

$RegCursorsControlPanel.SetValue("CursorBaseSize", 48)
$RegCursorsAccess.SetValue("CursorSize", 3)

$RegCursorsAccess.Close()
$RegConnect.Close()

# This section is where I thought it would update the cursor size.

# Here is where it lists stuff relating to setting and updating any settings changed.
# https://docs.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-systemparametersinfoa
    # SPI_SETCURSORS
    # 0x0057
    # Reloads the system cursors. Set …
Run Code Online (Sandbox Code Playgroud)

powershell winapi

5
推荐指数
1
解决办法
2238
查看次数

标签 统计

msbuild ×1

powershell ×1

visual-studio ×1

winapi ×1