Skip to main content
Filter by
Sorted by
Tagged with
1 vote
1 answer
961 views

I have solution that uses clean architecture, so I have following projects: Core Application that depends on Core Infrastructure that depends on Application Web that depends on Application and ...
Szyszka947's user avatar
  • 1,048
0 votes
1 answer
623 views

I have a two unit test projects, Tests.Common and Tests.Foobar. Tests.Foobar references Tests.Common as a dependency. Tests.Common includes content files that are used by both Tests.Common and Tests....
TravelingFox's user avatar
1 vote
1 answer
363 views

I have a Template folder in the project that should not be compiled or anything but should be included when built so my app can copy it later. The content may include C# files as well. I previously ...
Luke Vo's user avatar
  • 21.6k
0 votes
0 answers
67 views

I'm trying to make one postbuildevent to go, and then after that finishes, then do the other postbuildevent, don't know if this is possible. I really had no idea how to do this and I couldn't find any ...
Jonyboylovespie's user avatar
2 votes
1 answer
1k views

I want to set an AssemblyAttribute with an enum parameter in the .csproj file. How do I achieve that? I am aware that I can set it the following way within a file: [assembly: TestDataSourceDiscovery(...
Ildrial's user avatar
  • 523
0 votes
0 answers
87 views

My WPF project has App.xaml require other pieces of project code to be built before it gets built. Despite App.xaml's dependency on those classes and xaml files, Visual Studio wants to build it first ...
JoseAyeras's user avatar
1 vote
1 answer
594 views

I'm have a Project with a LaunchSettings.json it looks like this LaunchSettings.json { "profiles": { "Profile 1": { "commandName": "Executable", ...
TorstenB's user avatar
0 votes
0 answers
199 views

I'm trying to migrate from an old style csproj file where I have this in the file <ItemGroup> <Resource Include="Resources\CustomerLogo.png" /> </ItemGroup> and ...
Peter Poulsen's user avatar
0 votes
1 answer
2k views

I have a CSPROJ in which I define my own constant / compiler directive. <PropertyGroup> <DefineConstants>$(DefineConstants);MY_DIRECTIVE</DefineConstants> <MY_DIRECTIVE>...
TheDoomDestroyer's user avatar
0 votes
1 answer
508 views

When I'm building the application, one of the PreBuildEvents is the build of the React front-end: <PropertyGroup> <PreBuildEvent> powershell.exe "npm --prefix ""&...
Ruslan's user avatar
  • 135
0 votes
1 answer
1k views

Is there a way via NuGet.exe or within Visual Studio 2022, natively or via the Package Management Console, to only re-download all packages for a given solution and/or project without re-installing ...
ryancdotnet's user avatar
  • 2,410
0 votes
1 answer
215 views

What I do I have multiple tt files in my project file. Therefore, many entries are created for each file as follows. <ItemGroup> <Compile Update="Sample.cs"> <DesignTime&...
usausa's user avatar
  • 129
0 votes
1 answer
300 views

I am trying to deploy my function app on azure using the following code: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <TargetFramework>netstandard2.0</...
Murtaza's user avatar
1 vote
1 answer
3k views

I want to add Dll reference of system assembliesSystem.Runtime.Caching assembly in my .net Standard 2.0 project(using VS2019). Due to some policy restrictions nuget usage is not possible so we need to ...
Kryptonian's user avatar
1 vote
1 answer
363 views

Get error then i run build: [dotnet build] in directory: /opt/buildagent/work/d19a958ec8a4811c [08:40:52] [dotnet build] Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET [08:40:52] [...
Tsunani's user avatar
  • 90
1 vote
0 answers
526 views

In my .csproj file, i have the following written: <Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>...
Lincoln Muller's user avatar
1 vote
0 answers
3k views

I want to source some classes into another project. So, i have created a nuget package and want to use it in the project file(.csproj) file. So, that when i build my project it automatically uses the ...
Abhishek's user avatar
5 votes
1 answer
5k views

Is there a way to ignore all warnings of a nuget package by using the <NoWarn></NoWarn> tag in csproj file?
Coder vichar's user avatar
6 votes
1 answer
515 views

I am trying to use Text Transform templates (a feature of Visual Studio) with GitHub Actions. I am specifically using the Windows runner, which has Visual Studio 2022 Enterprise installed, so the ...
Den's user avatar
  • 16.9k
0 votes
0 answers
345 views

I have a ASP.NET project with a HTTP API and a classlib as a client project. I'm generating a .NET client with NSwag using a MSBuild task. My goal is that the client is generated before the build of ...
Christian Klemm's user avatar
0 votes
1 answer
321 views

I am writing a powershell script to automate some of the boilerplate setup when initiating a .NET Core Blazor application, and for some reason it is not properly updating the .csproj file. What I ...
hbarnett91's user avatar
0 votes
0 answers
418 views

Inside my project I have a csproj file where at the top of the file it says: <Import Project="..\packages\Grpc.Tools.2.31.0\build\Grpc.Tools.props" Condition="Exists('..\packages\...
Florent's user avatar
  • 137
0 votes
0 answers
426 views

One of my clients wants to port an old version of a SAML 2.0 library (ComponentSpace.SAML2) to the newest version. As part of this job, I'm required to write unit tests which verify that the generated ...
vinicius.ras's user avatar
  • 1,646
1 vote
1 answer
2k views

Visual Studio creates two files along with the .exe for my project that are required to run the exe: a deps.json and a runtimeconfig.json. A second project in my solution has the first project as a ...
Suuper W's user avatar
1 vote
0 answers
510 views

I have a dependency on the NuGet library: <ItemGroup> <PackageReference Include="OpenCvSharp4.Windows" Version="4.5.3.20210817" /> </ItemGroup> This package ...
nrofis's user avatar
  • 9,887

1
3 4
5
6 7
28