visual-studio-2019 相关问题

Visual Studio 2019是Microsoft Visual Studio的一个版本。除非您对此特定版本有特定问题,否则请勿使用此标记。

Visual Studio 查找/替换当前选择颜色更改?

在 Visual Studio 中,我可以转到“工具”>“选项”>“环境”>“字体和颜色”,并可以通过更改“查找匹配突出显示”来突出显示搜索结果。 进行查找/替换时,当前...

回答 1 投票 0

文件被 Visual Studio 2019 锁定

我在 Visual Studio 中遇到一个奇怪的问题: 如果在调试过程中抛出未处理的异常,我将无法构建我的 C# 应用程序: 无法复制文件“C:\Projects\A in\A.dll&...

回答 11 投票 0

XAML 热重载不断停止。可能是什么问题?

我最近开始学习 xamarin.forms,每当我运行应用程序时,一切都会突然顺利,XAML 热重载将开始然后停止。我已经重新启动了我的电脑好几次,甚至尝试过...

回答 5 投票 0

SDK 样式项目是新 .Net Framework 项目的推荐方法吗?

我正在开发一个 .Net Framework 4.8 解决方案,其中包含 20 个左右的项目(其中包括 WPF)。 我们正在讨论现在是否应该将我们的项目转换为 SDK 风格以获得新的和改进的项目形式...

回答 2 投票 0

我尝试将对我的应用程序所做的更改提交并推送到 Git,但我收到 .vs/ db 锁定错误

实际的错误消息是: Git 因致命错误而失败。错误:打开(“.vs/Server/sqlite3/db.lock”):权限被拒绝致命:无法处理路径.vs/Server/sqlite3/db.lock 过去当...

回答 2 投票 0

ASP.NET Core 5 错误“处理您的请求时发生错误”

我已在本地文件夹中发布了用 ASP.NET Core 5 (Visual Studio) 制作的网站,并在管理员 (IIS) 中注册了它。我还更改了 IIS_IUSRS 用户的权限,但是它...

回答 2 投票 0

将解决方案复制到新位置后出现 Visual Studio 2019 Blazor 应用程序 System.IO.DirectoryNotFoundException - 仍引用旧位置

将我的解决方案复制到新位置后,我收到此构建错误 “System.IO.DirectoryNotFoundException: 'C:\Users\\source 电子书\\\

回答 1 投票 0

如何创建可快速更新的自定义项目文件(并避免其他问题)?

我正在尝试创建一个执行几个自定义步骤的项目文件(具体来说,它“包装”现有的 Angular CLI 项目)。 这是我最好的尝试(myproject.csproj): 我正在尝试创建一个执行几个自定义步骤的项目文件(具体来说,它“包装”现有的 Angular CLI 项目)。 这是我最好的尝试(myproject.csproj): <Project ToolsVersion="Current" DefaultTargets="Build"> <PropertyGroup> <ProjectGuid>{...some-guid...}</ProjectGuid> <!-- do not include files by default --> <EnableDefaultItems>false</EnableDefaultItems> <!-- this removes 'Publish...' menu in VS --> <OutputType>Library</OutputType> <!-- output directory name --> <AngularProject>MyWebFiles</AngularProject> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Debug|x64'"> <PlatformTarget>x64</PlatformTarget> <OutputPath>bin\Debug\</OutputPath> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'Release|x64'"> <PlatformTarget>x64</PlatformTarget> <OutputPath>bin\Release\</OutputPath> </PropertyGroup> <ItemGroup> <AngularFile Include="**" Exclude="node_modules\**" /> </ItemGroup> <Target Name="Build" Inputs="@(AngularFile)" Outputs="$(OutputPath)$(AngularProject)\index.html"> <Exec Command="ng build --no-progress --output-path $(OutputPath)$(AngularProject)\" Condition="'$(Configuration)'=='Debug'" /> <Exec Command="ng build --no-progress --output-path $(OutputPath)$(AngularProject)\ --prod" Condition="'$(Configuration)'=='Release'" /> </Target> <Target Name="Clean"> <RemoveDir Directories="$(OutputPath)$(AngularProject)\" /> </Target> <Target Name="Rebuild" DependsOnTargets="Clean;Build" /> </Project> 一切正常,我可以将这个项目添加到VS2019解决方案中,编译等。但它有问题: 快速更新检查不起作用。 相关日志记录会产生以下结果: Build started... 1>Project 'myproject' is not up to date. Error (0x8000FFFF). 我尝试过手动指定快速最新的文件(通过UpToDateCheckInput等),但它不起作用(大概是因为它依赖于当您指定Sdk属性时引入的附加定义) Project标签)。 VS 配置管理器有空的“平台”组合框。我希望能够在其中包含x64: 很明显 PlatformTarget 被 VS 忽略了。 在 VS 中打开项目会创建 obj\x64\Debug\TempPE\ 目录(如果当前 Configuration 是 Debug)。其中不会生成任何内容——最好避免创建它。 这3个问题可以解决吗?我怀疑相关子系统期望生成某些值/属性,我尝试挖掘 VS 附带的 .props/.targets 试图找到它们,但很快就迷失了。 具体操作方法如下: <Project Sdk="Microsoft.Build.NoTargets/3.2.14"> <ItemGroup> <PackageReference Include="Microsoft.Build.NoTargets" Version="3.2.14" /> </ItemGroup> <PropertyGroup> <!-- Any target framework you want as long as its compatible with your referenced NuGet packages --> <TargetFramework>net462</TargetFramework> <Platforms>x64</Platforms> <!-- Do not add TargetFramework to OutputPath --> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <!-- Do not expect pdb files to be generated (this is for fast up-to-date check) --> <DebugType>None</DebugType> <!-- Do not include files by default --> <EnableDefaultItems>false</EnableDefaultItems> <!-- Output subdir name --> <AngularProject>MyWebFiles</AngularProject> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|x64'"> <OutputPath>..\..\Bin\Debug\</OutputPath> <BuildCommand>ng build --no-progress --output-path $(OutputPath)$(AngularProject)\</BuildCommand> </PropertyGroup> <PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|x64'"> <OutputPath>..\..\Bin\Release\</OutputPath> <BuildCommand>ng build --no-progress --output-path $(OutputPath)$(AngularProject)\ --prod</BuildCommand> </PropertyGroup> <ItemGroup> <None Include="**" Exclude="node_modules\**;$(BaseIntermediateOutputPath)\**;$(MSBuildProjectFile)" /> <!-- This deals with fast up-to-date checks --> <UpToDateCheckBuilt Original="package-lock.json" Include="node_modules/.build" /> <UpToDateCheckInput Include="@(None);$(MSBuildProjectFile)" Set="AngularFiles" /> <UpToDateCheckOutput Include="$(OutputPath)$(AngularProject)\index.html" Set="AngularFiles" /> </ItemGroup> <Target Name="InitModules" Inputs="package-lock.json" Outputs="node_modules/.build"> <Exec Command="npm ci --no-progress --no-color" YieldDuringToolExecution="true" /> <Exec Command="cd . &gt; node_modules/.build" /> </Target> <Target Name="BuildAngular" BeforeTargets="AfterBuild" Inputs="@(None);$(MSBuildProjectFile)" Outputs="$(OutputPath)$(AngularProject)\index.html" DependsOnTargets="InitModules"> <Exec Command="$(BuildCommand)" YieldDuringToolExecution="true" /> </Target> <Target Name="CleanAngular" BeforeTargets="AfterClean"> <RemoveDir Directories="$(OutputPath)$(AngularProject)\" /> </Target> </Project> 备注: 它仍然会生成额外的本地目录(obj),但可以通过覆盖IntermediateOutputPath将其移走 编辑: VS2019 的最新版本拒绝加载此类项目 - 您需要安装 .NET SDK (out of support) 单个组件(在 Visual Studio 安装程序中)来修复该问题。

回答 1 投票 0

在 Visual Studio 2019 中发布时获取 DestinationFiles 指 1 个项目,sourcefiles 指 1 个项目

非常需要帮助。发布到文件夹时出现以下错误。 使用以下发布设置 该解决方案在运行时工作得非常好。仅在发布时出现此错误。 请...

回答 2 投票 0

Visual Studio 2019:调试期间“本地”面板中出现错误 - “检索本地值的内部错误”

原始问题 (有关复制说明,请参阅更新 II) 我最近在调试会话期间摆弄了 Visual Studio 2019。我固定了类“SqlCommand&qu...

回答 2 投票 0

VB.Net 网站项目返回错误,当我尝试在 vs2019 中构建它时,这些错误不是错误

我在Visual Studio 2019中对一个VB.Net网站项目做了一些更改,然后我将它们合并到TFS中的UAT项目中,这样就可以将它们发布到我们的UAT网站上。当我尝试构建专业版时...

回答 1 投票 0

解决方案资源管理器中定位当前文件的按钮在新的 VS2019 中去了哪里?

我重新安装了 VS2019,但在解决方案资源管理器中找不到定位当前打开文件的按钮。哪里丢了,如何恢复?

回答 2 投票 0

创建自定义语音气泡工具提示,根据每种情况调整/放置其箭头/指针

我有一个 WPF 语音气泡工具提示,运行良好。 <Setter Property="OverridesDefaultStyle" ...</desc> <question vote="0"> <p>我有一个 WPF 语音气泡工具提示,运行良好。</p> <pre><code>&lt;Style x:Key=&#34;{x:Type ToolTip}&#34; TargetType=&#34;ToolTip&#34;&gt; &lt;Setter Property=&#34;OverridesDefaultStyle&#34; Value=&#34;true&#34; /&gt; &lt;Setter Property=&#34;HorizontalOffset&#34; Value=&#34;1&#34; /&gt; &lt;Setter Property=&#34;VerticalOffset&#34; Value=&#34;1&#34; /&gt; &lt;Setter Property=&#34;Background&#34; Value=&#34;White&#34; /&gt; &lt;Setter Property=&#34;Foreground&#34; Value=&#34;Black&#34; /&gt; &lt;Setter Property=&#34;FontSize&#34; Value=&#34;12&#34; /&gt; &lt;Setter Property=&#34;FontFamily&#34; Value=&#34;Segoe UI&#34; /&gt; &lt;Setter Property=&#34;DataContext&#34; Value=&#34;{Binding Path=PlacementTarget.DataContext, RelativeSource={x:Static RelativeSource.Self}}&#34;/&gt; &lt;Setter Property=&#34;Template&#34;&gt; &lt;Setter.Value&gt; &lt;ControlTemplate TargetType=&#34;ToolTip&#34;&gt; &lt;Canvas Width=&#34;225&#34; Height=&#34;131&#34;&gt; &lt;Path x:Name=&#34;Container&#34; Canvas.Left=&#34;0&#34; Canvas.Top=&#34;0&#34; Margin=&#34;0&#34; Data=&#34;M8,7.41 L15.415,0 L22.83,7.41 L224,7.41 L224,130 L0,130 L0,7.41 L8,7.41&#34; Fill=&#34;{TemplateBinding Background}&#34; Stroke=&#34;Gray&#34;&gt; &lt;Path.Effect&gt; &lt;DropShadowEffect BlurRadius=&#34;10&#34; Opacity=&#34;0.5&#34; ShadowDepth=&#34;4&#34; /&gt; &lt;/Path.Effect&gt; &lt;/Path&gt; &lt;TextBlock Canvas.Left=&#34;10&#34; Canvas.Top=&#34;10&#34; Width=&#34;100&#34; Height=&#34;65&#34; Text=&#34;{TemplateBinding Content}&#34; TextWrapping=&#34;WrapWithOverflow&#34; /&gt; &lt;/Canvas&gt; &lt;/ControlTemplate&gt; &lt;/Setter.Value&gt; &lt;/Setter&gt; &lt;/Style&gt; </code></pre> <p>上述方法的问题是,无论情况如何,语音气泡工具提示(路径)的箭头/指针始终放置在相同的位置,我希望它适应情况并使用以下之一(以上样式实现箭头位于左上角,下面屏幕截图中的第一个工具提示):</p> <p><a href="https://i.stack.imgur.com/T2MdB.png" target="_blank"><img src="https://cdn.imgupio.com/i/AWkuc3RhY2suaW1ndXIuY29tL1QyTWRCLnBuZw==" alt=""/></a></p> <p>我该怎么做?可以吗?</p> </question> <answer tick="false" vote="1"> <p>这是此任务的完整代码:</p> <pre><code>using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace Decorators { public enum Position { None, Top, Bottom, RightSide, LeftSide, } public enum SpecificPosition { None, LeftOrTop = 25, Center = 50, RightOrBottom = 75, } internal class BubbleTextDecorator : Decorator { #region DependencyProperties public static readonly DependencyProperty VerticalMarginProperty = DependencyProperty.Register(&#34;VerticalMargin&#34;, typeof(double), typeof(BubbleTextDecorator), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender)); public double VerticalMargin { get { return (double)GetValue(VerticalMarginProperty); } set { SetValue(VerticalMarginProperty, value); } } public static readonly DependencyProperty HorizontalMarginProperty = DependencyProperty.Register(&#34;HorizontalMargin&#34;, typeof(double), typeof(BubbleTextDecorator), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender)); public double HorizontalMargin { get { return (double)GetValue(HorizontalMarginProperty); } set { SetValue(HorizontalMarginProperty, value); } } public static readonly DependencyProperty PointerPositionProperty = DependencyProperty.Register(&#34;PointerPosition&#34;, typeof(Position), typeof(BubbleTextDecorator), new FrameworkPropertyMetadata(Position.None, FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.AffectsMeasure)); public Position PointerPosition { get { return (Position)GetValue(PointerPositionProperty); } set { SetValue(PointerPositionProperty, value); } } public static readonly DependencyProperty AlignmentPositionProperty = DependencyProperty.Register(&#34;AlignmentPosition&#34;, typeof(SpecificPosition), typeof(BubbleTextDecorator), new FrameworkPropertyMetadata(SpecificPosition.None, FrameworkPropertyMetadataOptions.AffectsRender | FrameworkPropertyMetadataOptions.AffectsMeasure)); public SpecificPosition AlignmentPosition { get { return (SpecificPosition)GetValue(AlignmentPositionProperty); } set { SetValue(AlignmentPositionProperty, value); } } public static readonly DependencyProperty PointerHeightProperty = DependencyProperty.Register(&#34;PointerHeight&#34;, typeof(double), typeof(BubbleTextDecorator), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender)); public double PointerHeight { get { return (double)GetValue(PointerHeightProperty); } set { SetValue(PointerHeightProperty, value); } } public static readonly DependencyProperty PointerWidthProperty = DependencyProperty.Register(&#34;PointerWidth&#34;, typeof(double), typeof(BubbleTextDecorator), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsArrange | FrameworkPropertyMetadataOptions.AffectsRender)); public double PointerWidth { get { return (double)GetValue(PointerWidthProperty); } set { SetValue(PointerWidthProperty, value); } } #endregion protected override Size ArrangeOverride(Size arrangeSize) { Size desiredSize = base.ArrangeOverride(arrangeSize); if (Child != null) { switch (PointerPosition) { case Position.Top: Child.Arrange(new Rect(new Point(0.0, PointerHeight), new Point(desiredSize.Width, desiredSize.Height))); break; case Position.Bottom: Child.Arrange(new Rect(new Point(0.0, 0.0), new Point(desiredSize.Width, desiredSize.Height - PointerHeight))); break; case Position.LeftSide: Child.Arrange(new Rect(new Point(PointerHeight, 0.0), new Point(desiredSize.Width, desiredSize.Height))); break; case Position.RightSide: Child.Arrange(new Rect(new Point(0.0, 0.0), new Point(desiredSize.Width - PointerHeight, desiredSize.Height))); break; } } return arrangeSize; } protected override Size MeasureOverride(Size constraint) { Size desiredSize = base.MeasureOverride(constraint); Size size = (PointerPosition == Position.Top || PointerPosition == Position.Bottom) ? new Size(desiredSize.Width + (HorizontalMargin * 2), desiredSize.Height + (VerticalMargin * 2) + PointerHeight) : new Size(desiredSize.Width + (HorizontalMargin * 2) + PointerHeight, desiredSize.Height + (VerticalMargin * 2)); return size; } protected override void OnRender(DrawingContext drawingContext) { Brush renderBrush = Brushes.Transparent; Pen renderPen = new Pen(Brushes.Black, 1); StreamGeometry geom = new StreamGeometry(); switch (PointerPosition) { case Position.Top: DrawTop(geom); break; case Position.Bottom: DrawBottom(geom); break; case Position.RightSide: DrawRight(geom); break; case Position.LeftSide: DrawLeft(geom); break; } // Some arbitrary drawing implements. drawingContext.DrawGeometry(renderBrush, renderPen, geom); } private void DrawLeft(StreamGeometry geom) { using (StreamGeometryContext ctx = geom.Open()) { ctx.BeginFigure( new Point(PointerHeight, 0.0), true, true); ctx.LineTo( new Point(ActualWidth, 0.0), true, false); ctx.LineTo( new Point(ActualWidth, ActualHeight), true, false); ctx.LineTo( new Point(PointerHeight, ActualHeight), true, false); ctx.LineTo( new Point(PointerHeight, (ActualHeight * (double)AlignmentPosition / 100) + (PointerWidth / 2)), true, false); ctx.LineTo( new Point(0.0, ActualHeight * (double)AlignmentPosition / 100), true, false); ctx.LineTo( new Point(PointerHeight, (ActualHeight * (double)AlignmentPosition / 100) - (PointerWidth / 2)), true, false); ctx.LineTo( new Point(PointerHeight, 0.0), true, false); } } private void DrawRight(StreamGeometry geom) { using (StreamGeometryContext ctx = geom.Open()) { ctx.BeginFigure( new Point(0.0, 0.0), true, true); ctx.LineTo( new Point(ActualWidth - PointerHeight, 0.0), true, false); ctx.LineTo( new Point(ActualWidth - PointerHeight, (ActualHeight * (double)AlignmentPosition / 100) - (PointerWidth / 2)), true, false); ctx.LineTo( new Point(ActualWidth, ActualHeight * (double)AlignmentPosition / 100), true, false); ctx.LineTo( new Point(ActualWidth - PointerHeight, (ActualHeight * (double)AlignmentPosition / 100) + (PointerWidth / 2)), true, false); ctx.LineTo( new Point(ActualWidth - PointerHeight, ActualHeight), true, false); ctx.LineTo( new Point(0.0, ActualHeight), true, false); ctx.LineTo( new Point(0.0, 0.0), true, false); } } private void DrawBottom(StreamGeometry geom) { using (StreamGeometryContext ctx = geom.Open()) { ctx.BeginFigure( new Point(0.0, 0.0), true, true); ctx.LineTo( new Point(ActualWidth, 0.0), true, false); ctx.LineTo( new Point(ActualWidth, ActualHeight - PointerHeight), true, false); ctx.LineTo( new Point((ActualWidth * (double)AlignmentPosition / 100) + (PointerWidth / 2), ActualHeight - PointerHeight), true, false); ctx.LineTo( new Point(ActualWidth * (double)AlignmentPosition / 100, ActualHeight), true, false); ctx.LineTo( new Point((ActualWidth * (double)AlignmentPosition / 100) - (PointerWidth / 2), ActualHeight - PointerHeight), true, false); ctx.LineTo( new Point(0.0, ActualHeight - PointerHeight), true, false); ctx.LineTo( new Point(0.0, 0.0), true, false); } } private void DrawTop(StreamGeometry geom) { using (StreamGeometryContext ctx = geom.Open()) { ctx.BeginFigure( new Point(0.0, PointerHeight), true, true); ctx.LineTo( new Point((ActualWidth * (double)AlignmentPosition / 100) - (PointerWidth / 2), PointerHeight), true, false); ctx.LineTo( new Point(ActualWidth * (double)AlignmentPosition / 100, 0.0), true, false); ctx.LineTo( new Point((ActualWidth * (double)AlignmentPosition / 100) + (PointerWidth / 2), PointerHeight), true, false); ctx.LineTo( new Point(ActualWidth, PointerHeight), true, false); ctx.LineTo( new Point(ActualWidth, ActualHeight), true, false); ctx.LineTo( new Point(0.0, ActualHeight), true, false); ctx.LineTo( new Point(0.0, PointerHeight), true, false); } } } } </code></pre> <p>这就是你如何使用它:</p> <pre><code>&lt;localdecorators:BubbleTextDecorator PointerHeight=&#34;10&#34; PointerWidth=&#34;20&#34; PointerPosition=&#34;LeftSide&#34; AlignmentPosition=&#34;Center&#34; VerticalMargin=&#34;30&#34; HorizontalMargin=&#34;30&#34; HorizontalAlignment=&#34;Left&#34;&gt; &lt;TextBlock Text=&#34;this&#34; HorizontalAlignment=&#34;Center&#34; VerticalAlignment=&#34;Center&#34;/&gt; &lt;/localdecorators:BubbleTextDecorator&gt; </code></pre> <p><a href="https://i.stack.imgur.com/0ycsH.png" target="_blank"><img src="https://cdn.imgupio.com/i/AWkuc3RhY2suaW1ndXIuY29tLzB5Y3NILnBuZw==" alt=""/></a></p> </answer> <answer tick="false" vote="0"> <p>目前我正在努力解决同样的问题。 您已经有解决这个问题的方法了吗?</p> <p>致以诚挚的问候</p> </answer> <answer tick="false" vote="-1"> <p>这是创建Decorator的典型案例。我曾经围绕文本制作了一个可定制的 ArrowBorder。你需要继承Decorator类。</p> <pre><code>internal class ArrowBorderDecorator : Decorator </code></pre> <p>然后你需要一些 DependencyProperties 以便于自定义。 在我的例子中,这是 <pre><code>ArrowTipToArrowTriangleBaseDistance</code></pre> 属性,这意味着箭头应该有多“尖”。在你的例子中,气泡文本箭头应该在哪里。</p> <pre><code> public static readonly DependencyProperty ArrowTipToArrowTriangleBaseDistanceProperty = DependencyProperty.Register(&#34;ArrowTipToArrowTriangleBaseDistance&#34;, typeof(double), typeof(ArrowBorderDecorator), new FrameworkPropertyMetadata(0.0, FrameworkPropertyMetadataOptions.AffectsMeasure | FrameworkPropertyMetadataOptions.AffectsRender)); public double ArrowTipToArrowTriangleBaseDistance { get { return (double)GetValue(ArrowTipToArrowTriangleBaseDistanceProperty); } set { SetValue(ArrowTipToArrowTriangleBaseDistanceProperty, value); } } </code></pre> <p>然后您需要重写 <pre><code>ArrangeOverride</code></pre>、<pre><code>MeasureOverride</code></pre> 和 <pre><code>OnRender</code></pre> 方法。前两个来自 Decorator 类,第三个来自 UIElement 类。</p> <p>这里有一个很好的<a href="https://stackoverflow.com/questions/66818340/measureoverride-and-arrangeoverride-what-is-really-availablesize-desiredsize">链接</a>来理解前两个。 在 <pre><code>OnRender</code></pre> 中,您有一个 DrawingContext,可以使用 DependenyProperties 绘制所需的形状。</p> <p>在这些之后,您可以像这样在 xaml 中使用装饰器:</p> <pre><code>&lt;localdecorators:ArrowBorderDecorator ArrowBaseHalfSegment=&#34;0&#34; FillColor=&#34;{DynamicResource MahApps.Brushes.Accent3}&#34; StrokeColor=&#34;{DynamicResource MahApps.Brushes.ThemeForeground}&#34; ArrowBorderThickness=&#34;1&#34; ArrowTipToArrowTriangleBaseDistance=&#34;10&#34;&gt; &lt;TextBlock Text=&#34;{Binding Path=Title}&#34; Foreground=&#34;{DynamicResource MahApps.Brushes.IdealForeground}&#34; Padding=&#34;10 1 10 1&#34; VerticalAlignment=&#34;Center&#34; FontWeight=&#34;Bold&#34;&gt; &lt;/TextBlock&gt;&lt;/localdecorators:ArrowBorderDecorator&gt; </code></pre> <p><a href="https://i.stack.imgur.com/bETwO.png" target="_blank"><img src="https://cdn.imgupio.com/i/AWkuc3RhY2suaW1ndXIuY29tL2JFVHdPLnBuZw==" alt=""/></a> <a href="https://i.stack.imgur.com/njfyp.png" target="_blank"><img src="https://cdn.imgupio.com/i/AWkuc3RhY2suaW1ndXIuY29tL25qZnlwLnBuZw==" alt=""/></a></p> </answer> </body></html>

回答 0 投票 0

Visual C:指定的语言模式不兼容

在 C 代码上使用 VisualStudio 2019: 当我将 C 语言规范设置为除 Legacy 之外的任何内容时... ...然后我得到: 我尝试了 C++/C 规范的不同组合(即使我只有 C 文件,所以 C++ 应该......

回答 1 投票 0

c#中将类转换为记录的快捷方式

如果我有以下课程: 公共课 Foo { 公共字符串代码{获取;放; } 公共字符串描述{获取;放; } 公共日期时间?有效日期 { 获取;放; } } 我想要

回答 3 投票 0

Visual Studio Intellisense 不断弹出

在 Visual Studio 2019 中使用 VB.NET。在代码库中的任意位置键入一个空格字符,弹出窗口会显示一长串选项。您必须不断点击或按 ESC 键。这很快...

回答 2 投票 0

'_Ty *std::allocator<_Ty>::address(_Ty &) no except const' 将 c++ 项目从 VS2010 升级到 VS2019 时出错

我们正在将 C++ 项目从 VS2010 迁移到 VS2019。 得到 错误:'_Ty *std::allocator<_Ty>::address(_Ty &) noexcept const':成员函数已定义或声明 在 'xmem...

回答 1 投票 0

如何从 Visual Studio 打开窗口中删除旧项目条目/列表/历史记录?

所有最近工作的项目都将在 Visual Studio 打开窗口中可用。 即使项目从我们的文件资源管理器中删除,这些名称也将存在于 VS 打开窗口中。 我可以...

回答 2 投票 0

Visual Studio 安装程序 2019

有没有办法下载 Visual Studio 2019,发生的情况是我删除了该文件夹,现在安装程序认为我有 Visual Studio 2019 并且不会让我下载它,如果我尝试删除...

回答 1 投票 0

如何在Visual Studio 2019中选择正确的.Net版本?

实际上,我在 Visual Studio 2019 中选择了 .net Framework 2.0,并且我知道部分方法是通过 C# 3 引入的,但是我如何在 dot net Framework 2.0 中使用部分方法。编译器不是

回答 1 投票 0

© www.soinside.com 2019 - 2024. All rights reserved.