You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i want to be able to use msbuild with adding the filename.sln thats why im asking if this can be modified if you guys dont want to do it can you point me in the right direction
this is another example if the first one doesnt make sense
msbuild sln /property:Configuration=Debug
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1009: Project file does not exist.
Switch: sln
msbuild /property:Configuration=Debug
Microsoft (R) Build Engine version 17.0.0+c9eb9dd64 for .NET Framework
Copyright (C) Microsoft Corporation. All rights reserved.
MSBUILD : error MSB1011: Specify which project or solution file to use because this folder contains more than one project or solution file.
If the directory contains many solutions MSBuild will naturally not be able to find out which you are talking about, and you inevitably have to specify it yourself. If it has one solution and many projects, I suggest you put them in separate directories.
I believe VS, when asked to open a project file, will instead open a solution if there is one in the same directory or immediately above that contains the project. MSBuild does not do that - which I think is good but possibly confusing here.
Yes I think so too also question is can I discuss about a new GUI window for forms there getting old now windows 7 style is there anything that you know of I can change this ect
Activity
danmoseley commentedon Jan 21, 2022
Hello, could you give an example of what you would type?
DevX-Cipher commentedon Jan 21, 2022
MsBuild.exe %USERPROFILE%\Desktop\Test\ .sln /property:Configuration=Debug
so you don't have to include the file name
teo-tsirpanis commentedon Jan 21, 2022
@modz2014 if a directory has only one solution file you can
cdinto it and run MSBuild without specifying the path.DevX-Cipher commentedon Jan 21, 2022
wont build unless i add the sln file name
i want to be able to use msbuild with adding the filename.sln thats why im asking if this can be modified if you guys dont want to do it can you point me in the right direction
teo-tsirpanis commentedon Jan 21, 2022
Why doesn't it work? What kind of errors does it show?
DevX-Cipher commentedon Jan 21, 2022
this is another example if the first one doesnt make sense
MSBUILD : error MSB1009: Project file does not exist.
Switch: sln
teo-tsirpanis commentedon Jan 21, 2022
Try
cding into your solution's directory and runmsbuild /property:Configuration=Debug, without thesln.DevX-Cipher commentedon Jan 21, 2022
im the directory of the file
there is only one .sln file and .csproj
teo-tsirpanis commentedon Jan 21, 2022
If the directory contains many solutions MSBuild will naturally not be able to find out which you are talking about, and you inevitably have to specify it yourself. If it has one solution and many projects, I suggest you put them in separate directories.
DevX-Cipher commentedon Jan 21, 2022
ok thanks
danmoseley commentedon Jan 21, 2022
I believe VS, when asked to open a project file, will instead open a solution if there is one in the same directory or immediately above that contains the project. MSBuild does not do that - which I think is good but possibly confusing here.
DevX-Cipher commentedon Jan 22, 2022
Yes I think so too also question is can I discuss about a new GUI window for forms there getting old now windows 7 style is there anything that you know of I can change this ect
DevX-Cipher commentedon Jan 24, 2022
Where would I find dotnet frame works Dev packs installed to because the location doesn't so when installing them