Skip to content

Suggestion #7312

Closed
Closed

Description

@DevX-Cipher

hi i was wondering if this can be modified to be able to build .sln without know the name and just the extension .sln only

Activity

  1. added
    needs-triage
    on Jan 21, 2022
  2. danmoseley commented on Jan 21, 2022

    @danmoseley

    Hello, could you give an example of what you would type?

  3. DevX-Cipher commented on Jan 21, 2022

    @DevX-Cipher
    Author

    MsBuild.exe %USERPROFILE%\Desktop\Test\ .sln /property:Configuration=Debug

    so you don't have to include the file name

  4. teo-tsirpanis commented on Jan 21, 2022

    @teo-tsirpanis
    Contributor

    @modz2014 if a directory has only one solution file you can cd into it and run MSBuild without specifying the path.

  5. DevX-Cipher commented on Jan 21, 2022

    @DevX-Cipher
    Author

    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

  6. teo-tsirpanis commented on Jan 21, 2022

    @teo-tsirpanis
    Contributor

    Why doesn't it work? What kind of errors does it show?

  7. DevX-Cipher commented on Jan 21, 2022

    @DevX-Cipher
    Author

    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

  8. teo-tsirpanis commented on Jan 21, 2022

    @teo-tsirpanis
    Contributor

    Try cding into your solution's directory and run msbuild /property:Configuration=Debug, without the sln.

  9. DevX-Cipher commented on Jan 21, 2022

    @DevX-Cipher
    Author

    im the directory of the file

    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.
    

    there is only one .sln file and .csproj

  10. teo-tsirpanis commented on Jan 21, 2022

    @teo-tsirpanis
    Contributor

    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.

  11. DevX-Cipher commented on Jan 21, 2022

    @DevX-Cipher
    Author

    ok thanks

  12. danmoseley commented on Jan 21, 2022

    @danmoseley

    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.

  13. DevX-Cipher commented on Jan 22, 2022

    @DevX-Cipher
    Author

    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

  14. DevX-Cipher commented on Jan 24, 2022

    @DevX-Cipher
    Author

    Where would I find dotnet frame works Dev packs installed to because the location doesn't so when installing them

  15. locked and limited conversation to collaborators on Jan 27, 2022
  16. converted this issue into a discussion #7343 on Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs-triage

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions