benmccallum / dotnet-references Goto Github PK
View Code? Open in Web Editor NEWA dotnet global tool for working with references in solution and project files
License: MIT License
A dotnet global tool for working with references in solution and project files
License: MIT License
Add .NET 8 support
I follow the steps as outlined. I end up with a flat root source folder with one sln file and several csproj files. However, when I run dotnet references fix I get the following error, which seems to originate from dotnet itself. Any ideas how to fix?
Step 15/25 : RUN dotnet references fix -ep MySolution.sln -wd . -rupf
---> Running in b13ea6e2a0a9
Specify which project file to use because this '/src' contains more than one project file.
The command '/bin/sh -c dotnet references fix -ep MySolution.sln -wd . -rupf' returned a non-zero code: 1
Here's my dockerfile build phase that results in the error:
FROM mcr.microsoft.com/dotnet/core/sdk:3.1-buster AS build
#Set up dotnet tools
ENV PATH="${PATH}:/root/.dotnet/tools"
RUN dotnet tool install -g dotnet-references
WORKDIR /src
COPY *.sln ./
COPY */*.csproj ./
RUN dotnet references fix -ep MySolution.sln -wd . -rupf
See PR #5
Hi. Thanks for this tool! I use it for the docker restore issue.
I have encountered a small issue on a big windows-developed project compiled on Linux machines.
On
You use the windows separator instead of Path.DirectorySeparatorChar
. So whenever we have linux-style separators, we get a Could not find csproj file path for: 'Include="../xxxProject/xxxProject.csproj'.
error.
However, as many projects actually a happy mix of forward and back slashes, I believe the best way to deal with this is to String.Replace all back with forward, as you actually already do in FixLocationsOfProjectsProcessor.cs.
Thanks for your help!
Add .NET 7 support
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.