csproj

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 can I change the default build output directory in Visual Studio Code

烈酒焚心 提交于 2021-02-08 06:27:38
问题 I'm new to Visual Studio Code. I want to define the output directory in my csproj. I don't know where to change in Visual Studio Code the destination folder to locate the dll files generated. 回答1: VSCode uses dotnet CLI and particularly for building the dotnet build command. Among others, it has the following option -o|--output <OUTPUT_DIRECTORY> Directory in which to place the built binaries. Assuming your building task is defined in .vscode/tasks.json file: { "version": "2.0.0", "tasks": [

Using Visual Studio Code and using defined symbols

落花浮王杯 提交于 2021-02-07 06:16:06
问题 EDIT: I have edited the whole question, since this is not only for Unity3D, but at all .sln projects. I have a installation of Visual Studio Code(Not Visual Studio, but this:https://code.visualstudio.com/) on my Macbook at work. VSCode is otherwise working just fine with normal and Unity3D projects. I get Intellisense on all classes, including Unity3D specific ones, like GameObject. So I think my installation and startup sequence is correct. Only problem I have, is that VSCode does not seem

How to reference a project out of solution?

浪子不回头ぞ 提交于 2021-01-28 03:51:46
问题 I have a Visual Studio C# solution which consists of some projects. One of the projects needs to reference another project which is not part of the solution. At the beginning I was referencing dlls: <ItemGroup> <Reference Include="ExternalProj1, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\Proj1\ExternalProj1.dll</HintPath> </Reference> </ItemGroup> However I must reference projects so that those will generate their

How to reference a project out of solution?

爷,独闯天下 提交于 2021-01-27 23:59:30
问题 I have a Visual Studio C# solution which consists of some projects. One of the projects needs to reference another project which is not part of the solution. At the beginning I was referencing dlls: <ItemGroup> <Reference Include="ExternalProj1, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL"> <SpecificVersion>False</SpecificVersion> <HintPath>..\..\Proj1\ExternalProj1.dll</HintPath> </Reference> </ItemGroup> However I must reference projects so that those will generate their

Embedded Resource Name Loses Extension When File is Nested

蹲街弑〆低调 提交于 2021-01-27 06:21:26
问题 I have some scripts stored in files that I've marked as Embedded Resource. I nest each of these files under their associated .cs file. Unfortunately, for some reason, when you nest a file this way, the embedded resource name loses the file extension. This means that at runtime I have no way to identify which embedded resources are or aren't scripts. What can I do about this? One thing I tried that did not work: getting the ManifestResourceInfo object, which has a FileName property.

Autogenerated IntermediateOutputPath in the .csproj file

混江龙づ霸主 提交于 2021-01-27 04:39:12
问题 After updating the code from Git I have an error in the csproj , because the file path doesn't exist. Here is the code which initiates the error: <PropertyGroup Condition="'$(Configuration)|$(Platform)' == 'ZAL_Release|x64'"> <DebugSymbols>true</DebugSymbols> <OutputPath>..\Release\bin\soft\</OutputPath> <DefineConstants>TRACE;ZAL</DefineConstants> <DebugType>full</DebugType> <PlatformTarget>x64</PlatformTarget> <ErrorReport>prompt</ErrorReport> <CodeAnalysisRuleSet>MinimumRecommendedRules

How to nest a Target within another Target in the .csproj file?

狂风中的少年 提交于 2021-01-07 01:42:51
问题 Long story short, I need to kill the VBCSCompiler.exe on a Azure pipeline Ubuntu agent after the nuget restore task is completed. On windows2019 agent i dont need to do that but on ubuntu i am running into an issue: /home/vsts/work/1/s/packages/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.1.0.8/build/net45/Microsoft.CodeDom.Providers.DotNetCompilerPlatform.props(17,5): warning MSB3021: Unable to copy file "/home/vsts/work/1/s/packages/Microsoft.Net.Compilers.2.4.0/build/../tools/csc.exe

Is it possible to reference a project that exists in the solution and use NuGet package reference as fall-back if not in .NET Core?

时光怂恿深爱的人放手 提交于 2020-12-11 09:05:49
问题 I have an .NET Standard project where I implemented a module for an ASP.NET Core CMS framework. Currently, it uses the CMS framework libraries coming from NuGet packages. If I grab the source code of the CMS framework from GitHub and add my module to its solution and replace the package references to the actual project references it will work fine. My goal is to make it work without updating the references in the csproj file so if the project is added to the full source code solution then use