Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio Components template directive doesn't get rendered #939

Closed
drewbrew opened this issue Oct 24, 2022 · 1 comment · Fixed by #940
Closed

Visual Studio Components template directive doesn't get rendered #939

drewbrew opened this issue Oct 24, 2022 · 1 comment · Fixed by #940
Labels
bug A crash or error in behavior. windows The issue relates to Microsoft Windows support.

Comments

@drewbrew
Copy link

Describe the bug
I tried to run briefcase build windows VisualStudio on a new Windows 11 box (Python 3.10) without VS installed and the error message didn't tell me which components I need.

To Reproduce
Steps to reproduce the behavior:

  1. Do a clean Windows 11 installation
  2. Install Python 3.10 from the Microsoft store
  3. Open a command prompt
  4. Run some commands:
cd \path\to\your\code
python3 -m pip install --upgrade --user pip setuptools wheel
python3 -m venv .venv
.\.venv\Scripts\activate
pip install briefcase
briefcase create windows VisualStudio
briefcase build windows VisualStudio
  1. Receive this error message:
(.venv) C:\Users\winst\code\briefcase-windows-VisualStudio-template\tests\apps\verify-pyside2>briefcase build windows VisualStudio

Visual Studio does not appear to be installed. Visual Studio 2022 Community
Edition can be obtained as a free download from:

    https://visualstudio.microsoft.com/vs/community/

When you install Visual Studio, ensure you install the following workloads
and additional components:
{VSCODE_REQUIRED_COMPONENTS}
If you have Visual Studio installed in a non-default location, you must
either put MSBuild.exe in your path, or define an MSBUILD environment
variable that points at the MSBuild.exe provided by your Visual Studio
installation.

Expected behavior
{VSCODE_REQUIRED_COMPONENTS} gets rendered into a list of components I should install.

Screenshots
image

Environment:

  • Operating System: Windows 11 Pro, Version 22H2, build 22623.870
  • Python version: 3.10.8
  • Software versions:
    • Briefcase: 0.3.11
    • pip freeze:
arrow==1.2.3
binaryornot==0.4.4
briefcase==0.3.11
certifi==2022.9.24
chardet==5.0.0
charset-normalizer==2.1.1
click==8.1.3
colorama==0.4.5
commonmark==0.9.1
cookiecutter==2.1.1
gitdb==4.0.9
GitPython==3.1.29
idna==3.4
Jinja2==3.1.2
jinja2-time==0.2.0
MarkupSafe==2.1.1
packaging==21.3
platformdirs==2.5.2
psutil==5.9.3
Pygments==2.13.0
pyparsing==3.0.9
python-dateutil==2.8.2
python-slugify==6.1.2
PyYAML==6.0
requests==2.28.1
rich==12.6.0
six==1.16.0
smmap==5.0.0
text-unidecode==1.3
tomli==2.0.1
tomli_w==1.0.0
urllib3==1.26.12
@drewbrew drewbrew added the bug A crash or error in behavior. label Oct 24, 2022
@rmartin16
Copy link
Member

{VSCODE_REQUIRED_COMPONENTS} should be replaced with the blob below:

    * .NET Desktop Development
      - Default packages
    * Desktop Development with C++
      - Default packages; plus
      - C++/CLI support for v143 build tools

@freakboy3742 freakboy3742 added the windows The issue relates to Microsoft Windows support. label Oct 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug A crash or error in behavior. windows The issue relates to Microsoft Windows support.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants