65 questions
12
votes
4
answers
3k
views
installing dotnet-ef dotnet tool throws error
I’m trying to install the Entity Framework Core CLI tools globally using the .NET CLI command:
dotnet tool install --global dotnet-ef
However, the installation fails with the following error message:
...
0
votes
0
answers
18
views
PackAsTool and digital signing
Let's say you have a project MyTool that you want to publish as NET tool while digitally signing both binaries and NuGet package. The procedure is as follows:
Build the project.
Digitally sign output....
1
vote
0
answers
30
views
.NET Tool: Exclude framework assemblies when packing
I am creating a .NET tool project:
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net8.0</...
1
vote
0
answers
742
views
How to run dotnet-svcutil with updated dependencies?
When I run dotnet-svcutil (latest, v2.1.0) for my .NET 8 project, I get several security warnings for out-of-date dependencies it's using. For example:
warning NU1903: Package 'System.Security....
0
votes
1
answer
473
views
Cannot install a specific version of dotnet tool in Azure DevOps pipeline
I am trying to install a version of a dotnet tool and it works for older versions but for the latest version, for some reason, it just won't install
dotnet new tool-manifest
dotnet tool install foo --...
8
votes
2
answers
3k
views
dotnet tools not working in linux . You must install or update .NET to run this application. App
It's my information about .NET installed on pc.
dotnet --info
.NET SDK:
Version: 8.0.100
Commit: 57efcf1350
Workload version: 8.0.100-manifests.6c33ef20
Runtime Environment:
...
1
vote
1
answer
445
views
dotnet tool - authenticate using token non-interactively
I'm setting up a system that is installing a tool via:
dotnet tool install MyTool --tool-path . --add-source <my-source-url>
The source I'm trying to get from is an Azure artifacts feed, and so ...
1
vote
1
answer
892
views
Script Headless Install .NET 7 SDK on Windows Server 2022 via PowerShell
Is it possible to headlessly install the .NET 7 SDK on a fresh instance of Windows Server 2022 via powershell or batch script?
My goal is to spin up a new Instance and then be able to install and ...
0
votes
1
answer
1k
views
How to make my dotnet tool to auto self update
I cannot see how to configure my dotnet tool (c# .net 6) to auto update
If I execute dotnet tool update <tool> --global --no-cache in process then it complains about the file already existing.
...
1
vote
0
answers
196
views
upgrade-assistant and EntityFramework
I have an issue, every time i try to use the upgrade-assistant tool it tries to remove entityFramework from a library containing it, and then update the library to NetStandard2.0.
This is not helping ...
0
votes
0
answers
210
views
Resolve .NET runtime version with same approach for .NET and .NET Framework
We're developing several .NET web applications, both on the old (.NET Framework 4.8) and new stack (.NET 6). On production, we want to determine on which .NET runtime each application is running.
I ...
13
votes
4
answers
20k
views
Cannot install anything using dotnet tool install command
I'm trying to install the dotnet-ef tool via the dotnet-cli.
The command that I enter: dotnet tool install --global dotnet-ef
It gives me the following error:
C:\Users\%USERNAME%\AppData\Local\Temp\...
2
votes
2
answers
4k
views
How to ensure a "dotnet tool" is installed in an Azure Pipeline?
In a Azure Devop Build, I'm using a tool(https://github.com/tomchavakis/nuget-license). I want this tool to be installed in my Azure Devop Agent.
I've created this task in my YML:
- task: CmdLine@2
...
1
vote
0
answers
1k
views
Concurrent "dotnet tool restore" fails, DotnetToolSettings.xml is being used by another process
One of our projects runs dotnet tool restore as part of its postbuild step.
On CI this build step is run multiple times in concurrent pipeline stages (not ideal but it's what we're working with...). E....
6
votes
0
answers
246
views
Install dotnet tool as library
I have a library packaged as tool. I use that same library as a regular project in the solution. I would like to use the nuget package also as library, but it seems that went it has been packaged as ...
1
vote
1
answer
35
views
servicestack VueJS Compile failure
enter image description here
After installing Vuejs in the servicestack then run the project it shows error like this.kindly give a solutions
0
votes
1
answer
569
views
Dotnet CLI webapi Project Build Failure - Error MSB3021
Machine: Windows 10.
SDK: 5.0.401
Project Type: webapi
Issue: Running dotnet build produces the following...
Things I've already tried:
resmon.exe => to look for either the apphost.exe handle ...
0
votes
1
answer
900
views
How to retrieve value of pwd from powershell in c# code
I was looking for the answer at least 3 hours, but without success.
Everywhere are just pieces of code and I have no idea how to connect them together.
What I want to achieve:
I am creating dotnet-...
4
votes
1
answer
1k
views
dotnet tool update not getting latest version in nuget
I'm playing with dotnet-tool and nuget; I noticed that if I push a refresh nameOfPackage.nupkg to the nuget repo and then run dotnet tool update -g nameOfPackage it does not take the new package ...
12
votes
1
answer
8k
views
How to run AWS Lambda dotnet on localstack
The DotNet3.1 AWS Lambda
I have created an AWS Lambda solution with C# DotNet3.1 using the Amazon template
dotnet new serverless.AspNetCoreWebAPI -n MyDotNet.Lambda.Service
this creates a lambda ...
1
vote
0
answers
285
views
MSBuild use local .NET tool if available falling back to global tool if not
I have an MSBuild project with a target that depends on a .NET tool (let's call it do-stuff-tool).
.NET tools can be installed globally and/or locally, and developers using the MSBuild project may ...
11
votes
4
answers
4k
views
How to exclude certain file types from dotnet watch run?
Looking to get the following setup going:
I'm working on a Blazor app, and with the official css isolation bundler. I'm using Less though, and installed a Less transformer which creates the required ...
5
votes
3
answers
1k
views
Is it possible to use wild card versions for dotnet global/local tools?
We use the normal dotnet-tools.json for setting up our dotnet local tools for our project but was wondering if there is a way to use wild card versions for the version numbers like you can do within ...
1
vote
1
answer
252
views
Several project nuget package. Unable to find package
I have to netstandard2.0 projects:
projectA/src/client/client.csproj
projectB/src/lib/lib.csproj
project A client reference project b lib like:
...
<ItemGroup>
<ProjectReference ...
24
votes
4
answers
22k
views
How to build .sqlproj projects using "dotnet" tool?
Unable to build .Net .sqlproj using "dotnet" command line tool. Here's the error:
dotnet\sdk\3.1.300\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets" was not found
I ...