<Window x:Name="FISHBOT" x:Class="FISBOT.MainWindow"
xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
xmlns:local="clr-namespace:FISBOT"
xmlns:gif="http://wpfanimatedgif.codeplex.com"
mc:Ignorable="d"
WindowStartupLocation="CenterScreen"
Title="update" Height="300" Width="300" ResizeMode="NoResize" Background="#FF121212" WindowStyle="None">
<Grid>
<Grid.ColumnDefinitions>
</Grid.ColumnDefinitions>
<Image gif:ImageBehavior.AnimatedSource="/pre-6-glavnyh-sovetov-i-idej-dlya-interaktivnogo-veb-dizajna.gif" />
<Label x:Name="UpdateInfo" FontFamily="./Montserrat-VariableFont_wght" Content="Запуск..." Background="Transparent" Margin="10,235,10,10" Foreground="White" FontSize="18" VerticalContentAlignment="Center" HorizontalContentAlignment="Center" RenderTransformOrigin="0.5,0.5">
</Label>
</Grid>
</Window>
string readver = wc.DownloadString("Cсылка");
И да переустановка визлы не помогла Пакет "Strathweb.CacheOutput.WebApi2 0.11.0" был восстановлен с помощью ".NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8, .NETFramework,Version=v4.8.1", а не целевой платформы проекта "net6.0-windows7.0". Этот пакет может быть не полностью совместим с вашим проектом.
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>WinExe</OutputType>
<TargetFramework>net6.0-windows</TargetFramework>
<Nullable>enable</Nullable>
<UseWPF>true</UseWPF>
<AssemblyVersion>3.0</AssemblyVersion>
<FileVersion>3.0</FileVersion>
<PublishSingleFile>true</PublishSingleFile>
<SelfContained>true</SelfContained>
<RuntimeIdentifier>win-x64</RuntimeIdentifier>
<PublishReadyToRun>true</PublishReadyToRun>
<Copyright>RINCODE</Copyright>
<PackageProjectUrl>https://vk.com/rincode</PackageProjectUrl>
<PackageRequireLicenseAcceptance>False</PackageRequireLicenseAcceptance>
<PackageLicenseFile>certificate_ca.crt</PackageLicenseFile>
<PackageIcon>icon.jpg</PackageIcon>
<StartupObject>FISBOT.App</StartupObject>
<ApplicationIcon>icon.ico</ApplicationIcon>
</PropertyGroup>
<ItemGroup>
<None Remove="icon.ico" />
<None Remove="pre-6-glavnyh-sovetov-i-idej-dlya-interaktivnogo-veb-dizajna.gif" />
</ItemGroup>
<ItemGroup>
<Content Include="icon.ico" />
</ItemGroup>
<ItemGroup>
<None Include="..\..\certificate_ca.crt">
<Pack>True</Pack>
<PackagePath>\</PackagePath>
</None>
</ItemGroup>
<ItemGroup>
<PackageReference Include="MySql.Data" Version="8.0.31" />
<PackageReference Include="Strathweb.CacheOutput.WebApi2" Version="0.11.0" />
<PackageReference Include="Telegram.Bot" Version="18.0.0" />
</ItemGroup>
<ItemGroup>
<Resource Include="icon.ico" />
<Content Include="pre-6-glavnyh-sovetov-i-idej-dlya-interaktivnogo-veb-dizajna.gif">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
</Content>
</ItemGroup>
</Project>