csproj Questions
3
Using SDK-style csproj.
Scenario:
csproj:
<PackageReference Include="MyNamespace.Package" Version="3.5.4-*" />
<PackageReference Include="MyNamespace.Other" Version="3.5.3" />
Inst...
Scrip asked 16/8, 2018 at 10:6
2
Solved
I have a nuget package that includes an XML documentation file.
packages/MyPackage.1.0.0/lib/net472/MyPackage.xml
However when I build my project, I want to include this xml file in the output.
...
Dissepiment asked 8/8, 2019 at 12:5
2
I'm perplexed as to what the AppDesignerFolder element is used for in a csproj file.
There appears to be almost no documentation at MSDN, and the most insightful answer I've found is just not very...
1
Solved
I need some help writing a post build event that would work cross platform. The following in my csproj file will work on windows but not Unix. Thanks.
<Target Name="PostBuild" AfterTa...
Townie asked 3/12, 2020 at 19:14
4
I'm using Visual Studio 2012 RC to work with my C# solution. All my configuration-specific settings are stored within a single .props file which is then included by all my .csproj files.
Yet VS in...
Herewith asked 9/7, 2012 at 18:45
5
Solved
I have AssemblyInfo.cs file automatically generated during build. Here's part of .csproj file:
<PropertyGroup>
<Major>2</Major>
<Minor>3</Minor>
<Build>0<...
Charleencharlemagne asked 21/4, 2011 at 15:25
3
When doing my CI on Azure DevOps with the YAML file format, I'm trying to read my csproj files to extract informations about version to create NuGet packages that will follow the csproj version.
I...
Pimbley asked 5/2, 2019 at 19:24
1
Solved
I want my Framework 4.7.2 code to use a library that targets netcoreapp3.1
Nuget indicates that the library is referenced, yet I do not see it in the list of references.
I tried editing the projec...
Tiliaceous asked 7/6, 2020 at 20:18
4
I am doing c# programming course (building ASP.NET Core application) right now that is almost 1year old. The guy created web API application and class libraries and in those projects there was proj...
Duple asked 10/10, 2017 at 18:55
5
Solved
In "old school" MSBuild projects - as still used by Windows Forms in VS2017 for example - files could be "nested" via a DependentUpon item in the csproj file.
I used this to group unit tests toget...
Greeting asked 8/5, 2017 at 11:6
6
Sonarqube allows for individual files to be excluded from code coverage by adding patterns in the sonar.coverage.exclusions key. This can be done on a project level by adding them in the UI and eve...
Manriquez asked 22/12, 2017 at 9:37
1
Solved
Is it possible to have a section of my csproj file in dotnet core (3.1.1) which is only included when debugging? I'd like to accomplish something like the following
<Project Sdk="Microsoft.NET....
5
Solved
I have VS 2008 and csproj project (C# Library).
In properties of project, has an assembly name, and default namespace.
Note: each class has a namespace.
Is it possible, in runtime, get the valu...
Reider asked 3/2, 2011 at 12:3
1
Solved
We have a large solution (mainly .NET 4.7) with a legacy ASP.NET application and many other projects. It is infeasible to move the whole solution to .NET core. Still, we no longer want to manage tr...
1
Solved
I have a number of C# files I am generating. I would like them to automatically be nested under the matching C# file inside the Visual Studio solution explorer. For example, Foo.Generated.cs and Ba...
Thresathresh asked 9/4, 2020 at 23:45
1
I have code for a bunch of CLI utilities made to test/showcase a network library. The library is compiled into an assembly - DotNet Core DLL.
I have several CLI examples showing how to use the lib...
3
I have solution with multi-targeted csproj files:
<PropertyGroup>
<TargetFrameworks>net45;netstandard1.6</TargetFrameworks>
</PropertyGroup>
or
<PropertyGroup>
...
2
Solved
I would like to read, modify and write back csproj files.
I've found this code, but unfortunately Engine class is depreciated.
Engine engine = new Engine()
Project project = new Project(engine);
...
Parette asked 9/4, 2014 at 9:13
2
I have 2 types of refences and each of them are working fine.
I tried to use each one and got the same result in project build .
Please explain to me what is the difference between COM Reference ...
2
Solved
Visual studio have provided a slimmed-down .csproj file format.
I am trying to build a .NET Framework app (version 4.6.1), but use the new hand-editable file.
Similar to the previous behavior, I ...
Kaolinite asked 29/1, 2020 at 1:44
8
Solved
How is
<None Include="C:\foo.bar" />
different from
<Content Include="C:\foo.bar" />
?
8
Solved
I have a fairly complex application which has been broken up into multiple components. Each component has a solution file which contains a bunch of projects. So I like to think of this as a compone...
Kelpie asked 25/8, 2010 at 9:29
1
So currently you could configure the branch and commit a .nuspec (see reference):
<repository type="git"
url="https://github.com/NuGet/NuGet.Client.git"
branch="dev"
commit="e1c65e4524cd7...
Westmoreland asked 30/7, 2019 at 20:16
2
Solved
I have a postbuild event in my csproj. I want to ignore the output from this command, but whenever I do command >nul 2>&1 this csproj goes corrupt, probably because of the ">". I noticed when I...
3
Solved
I would like to ask some help because I'm totally lost.
I would like to check whether nodes in a particular part of the .csproj files contains proper data or not. In the xml snippet below I would ...
Storytelling asked 6/11, 2014 at 20:30
© 2022 - 2024 — McMap. All rights reserved.