-
Notifications
You must be signed in to change notification settings - Fork 748
NUnitLite package always installs both Program.cs and Program.vb #1428
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
Comments
I can verify that it worked at one time. |
Update: I believe install.ps1 is no longer ran at all for We probably need to find a different solution for this functionality. |
The contentfiles can be specified with a target language in the directory - although I don't know how backwards compatible that is. Given this has been 'not working' since this time last year though, maybe not worth worrying about too much. 😄 https://docs.microsoft.com/en-us/nuget/schema/nuspec#package-folder-structure |
@ChrisMaddock From the docs, it's not clear whether installing the package would cause the files to be copied only to the corresponding project type. Experiment if you like. 😄 We also have had some discussion that indicates this causes problems when the package is installed in CI, if the user already provided their own entry point, so we may want to rethink this. Maybe it should just be provided as a sample or not provided at all. |
We can drop the install.ps1 and just put the files in |
@rprouse The problem isn't with overwriting a file but with having two files in the project that define Main. Whoever works on this should ensure that it works in that situation. |
This is another one that causes me regular pain, and I want to get round to fixing. There's some debate here as if we want to install the file at all. Personally - I'd like to fix the current (intended) behaviour, and leave any further improvements to a separate issue. Any objections to that? |
I don't think it matters which way we go - either dropping both or using the correct language. |
@ChrisMaddock sounds good. |
I looks like install.ps1 is not supported anymore - see NuGet/Home#6330 and NuGet/Home#5963 - but perhaps we can use Init.ps1 instead - see https://stackoverflow.com/a/40932008 - but that will be executed every time the solution is opened. |
Why not just remove the install script and both files? Neither file has been installed for about three years. I just installed nunitlite in a project yesterday. I typed in a one-line main and that was it. |
I agree with Charlie. I've supplied a PR and I'll update https://docs.nunit.org/articles/nunit/running-tests/NUnitLite-Runner.html when this is merged. |
This functionality have not worked for years, and have now been removed in future versions by nunit/nunit#1428
This functionality have not worked for years, and have now been removed in future versions by nunit/nunit#1428
This functionality have not worked for years, and have now been removed in future versions by nunit/nunit#1428 aba5b1a
The NUnitLite package has an install script which looks like it should be delete either of these files if they do not match the project type. It doesn't seem to be working. Haven't really looked in to why, yet.
The text was updated successfully, but these errors were encountered: