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
1
answer
1k
views
How to set dotnet publish command parameters for publishing an ASP.NET Core project hosting a Blazor WebAssembly application?
I'm having trouble figuring out the correct parameters to use when publishing an ASP.NET Core project that hosts a Blazor WebAssembly application via the dotnet publish command.
When I use the "...
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:
...
0
votes
1
answer
69
views
Running props commands ONCE when solution is opened
I have a nuget package with a props file, and in the props file I have these commands:
<Target Name="_myRunCommands" BeforeTargets="Rebuild;Build">
<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
1
answer
550
views
dotnet-try wants to access key "tmp..." in your keychain. Should I give it access?
I'm following along to an Intro to LINQ vid on YouTube which asks us to install dotnet-try. So install it and run dotnet try demo from an empty directory as instructed. It opens up a browser window ...
9
votes
4
answers
4k
views
How to update all of my dotnet global tool by one command
I install too many dotnet tool but how to keey they in lastest version. I do not want to update them manual.
I find the github issus: Add dotnet tool update --all option · Issue #10130 · dotnet/sdk
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 --...
9
votes
2
answers
13k
views
Cannot install playwright: Couldn't find project using Playwright. Ensure a project or a solution exists in
I'm trying to install playwright on my deployment target machine in order to run UI tests.
# Install the CLI once.
dotnet tool install --global Microsoft.Playwright.CLI
playwright install
however ...
0
votes
0
answers
86
views
See a break down of managed memory from a running process
I am trying to see if there is a way, perhaps using some of the tools available in the Eventpipe runtime, to get a breakdown of the memory usage similar to what is available when doing a memory ...
0
votes
1
answer
2k
views
Azure pipeline dotnet test error ---> System.Exception: Unable to read beyond the end of the stream
When running dotnet test on the Azure Pipeline, the pipeline fails with error:
System.Exception: Unable to read beyond the end of the stream.
at System.IO.BinaryReader.Read7BitEncodedInt()
at ...
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
1
answer
563
views
dotnet pack reads an empty VCTargetsPath
I am building a Nuget package with Azure Pipelines.
The pipeline is run by a self hosted agent.
It works perfectly for pure .NET and .NET framework projects, but I get an error with a (VS2022) ...
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 ...
2
votes
2
answers
2k
views
Tool 'dotnet-try' failed to install
Trying to install dotnet-try global tool from the command prompt on Windows by running dotnet tool install -g dotnet-try but failed with the following error.
Failed to create shell shim for tool '...
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
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
421
views
Why does dotnet publish fail when using the pwsh task, but not PowerShell@2?
Using Azure Pipelines, I have the following step in a job running on the windows-2022 vmImage:
- pwsh: |
$config = "${{ parameters.buildConfiguration }}"
$runtime = "${{ ...
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 ...
1
vote
1
answer
3k
views
How can I always update a dotnet tool to the latest version including previews?
When you want to update or install a dotnet tool you need to explicitly provide the version for preview versions.
It doesn't work in our DevOps environment because we need to be the package always the ...
1
vote
1
answer
2k
views
dotnet tool - It was not possible to find any compatible framework version - why do we need a major version match of dotnet?
I'm trying to run the dotnet tool Swashbuckle.AspNetCore.Cli (5.6.3) in a Azure Devops build agent with only .NET 5
That doesn't work and I get the following error:
It was not possible to find any ...
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 ...
3
votes
2
answers
15k
views
Update .NET Core Tools
I'm trying to use [email protected]. In order to do this at this point I already have:
- Installed Visual Studio 2019 Preview
- Installed the .NET Core 3.1 Runtime
- Installed the .NET Core 3.1 ...
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 ...
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-...