visual-studio

How do I distribute a font in a nuget package using the new csproj approach to create nuget packages?

我是研究僧i 提交于 2021-02-08 09:36:05
问题 I have a nuget package for Xamarin Forms (ios and android) with which I want to distribute a custom font. I can't find from the nuget documentation how I can include the font in the nuget package so that it gets added to the iOS or Android project that consumes the package. Is this even possible? If so, how? 回答1: How do I distribute a font in a nuget package using the new csproj approach to create nuget packages? To include the font in the nuget package and use it in the new csproj iOS or

How to create xamarin PCL Project in Visual Studio 2019

笑着哭i 提交于 2021-02-08 09:16:34
问题 I am not having option for PCL Project while Creating new xamarin project in VS 2019. I am getting option as shown in image I run old PCL Project, It is running successfully. Please help me to create PCL Project in VS 2019. 回答1: Portable Class Libraries (PCLs) are deprecated in the latest versions of Visual Studio. you can still open, edit, and compile PCLs For new projects it is recommended to use .NET Standard libraries to access a larger API surface area. For more details please refer

How to create xamarin PCL Project in Visual Studio 2019

大城市里の小女人 提交于 2021-02-08 09:16:19
问题 I am not having option for PCL Project while Creating new xamarin project in VS 2019. I am getting option as shown in image I run old PCL Project, It is running successfully. Please help me to create PCL Project in VS 2019. 回答1: Portable Class Libraries (PCLs) are deprecated in the latest versions of Visual Studio. you can still open, edit, and compile PCLs For new projects it is recommended to use .NET Standard libraries to access a larger API surface area. For more details please refer

Can I make Visual Studio warn me when I forget to assign String.Replace()?

橙三吉。 提交于 2021-02-08 09:02:46
问题 I just wrote the following line of C# code, and then spent a couple of minutes troubleshooting when the program didn't work as expected: myString.Replace(oldValue, newValue); ( myString , oldValue , and newValue are all string variables.) Obviously my intent was to cause the myString variable to be reassigned a new string equal to the original myString value but with the oldValue substring replaced by newValue . Equally obviously (in hindsight), that line of code didn't work because I should

F# error 'error FS0039: The namespace or module 'MySql' is not defined'?

微笑、不失礼 提交于 2021-02-08 08:59:19
问题 Hello I try to connect F# and MySQL database, but i got fallowing error :error FS0039: The namespace or module 'MySql' is not defined. So far,i tried to reference the folder which contains MySQL.Data.dll:project -> add reference->browse -> C:\Program Files (x86)\MySQL\MySQL Connector Net 6.3.6\Assemblies\v2.0 Also i tired to reference MySQL.Data,too. But each time,i get this error. Thanks for your help. Regards, 回答1: The F# interactive window is unaware of your project references, so you need

Visual studio ask me to clone the same project which is already in the DevOps

天涯浪子 提交于 2021-02-08 08:55:26
问题 I am new to DevOps and Git. (time ago was using VisualSVN) I wanted to commit a project's new changes to it's DevOps repository which I created earlier . For some days repeatedly I made changes, commit, push to the repository. Don't know why now after some days I am not able to do so. Maybe a time-out thing, a disconnection from the repo. By the way, after that seems I needed to reconnect to the repo, but after the connection, it repeatedly asks me to clone the same project , which I am

“Go to Implementation” ending up with “The symbol has no implementations”

佐手、 提交于 2021-02-08 06:46:42
问题 When right clicking on e.g. a method in Visual Studio and selecting Go To Implementation it tells me The symbol has no implementations I tried with services.AddDbContext<RazorPagesMovieContext>(options => options.UseSqlServer(Configuration.GetConnectionString("RazorPagesMovieContext"))); where AddDbContext is actually part of Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions Is it possible to get Go To Implementation working, as .NET Core and ASP.NET Core are

“Go to Implementation” ending up with “The symbol has no implementations”

為{幸葍}努か 提交于 2021-02-08 06:46:32
问题 When right clicking on e.g. a method in Visual Studio and selecting Go To Implementation it tells me The symbol has no implementations I tried with services.AddDbContext<RazorPagesMovieContext>(options => options.UseSqlServer(Configuration.GetConnectionString("RazorPagesMovieContext"))); where AddDbContext is actually part of Microsoft.Extensions.DependencyInjection.EntityFrameworkServiceCollectionExtensions Is it possible to get Go To Implementation working, as .NET Core and ASP.NET Core are

How to add External .exe to my C# project?

倖福魔咒の 提交于 2021-02-08 06:27:35
问题 Can I add external .exe to my C# project so that i don't need any path to access it as outside app? I want to embed it as my project resource? Thanks in advance 回答1: You can add file by right-clicking on the project, or drag-n-drop works. You can add your exe in your solution and set its Build Action: Content and Copy to output Directory: Copy always . The installer should automatically include the file. Hope this helps 来源: https://stackoverflow.com/questions/51326810/how-to-add-external-exe