Skip to content

Tests not generated when tested project's framework not installed #1612

Open
@mxprshn

Description

@mxprshn

Plugin version: 2022.12-beta

When testing a project which target framework (configured in .csproj) is not installed on machine (i. e. targeting .NET Framework, but building the project with .NET via back compatibility), tests are not generated.

Cause

targetFramework argument which is passed to V# Renderer is determined by .csproj configuration

var tfm = context.PsiModule.TargetFrameworkId;

V# Renderer then calls new nunit --force with --framework {targetFramework}, which fails if the framework is not installed

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Todo

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions