-
Couldn't load subscription status.
- Fork 1.2k
Adding templates for C# Classlibrary, VB Consoleapp\classlibrary #130
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
Conversation
|
|
||
| <PropertyGroup> | ||
| <WarningLevel>4</WarningLevel> | ||
| <NoWarn>$(NoWarn);1701</NoWarn> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
| <Icon>ClassLibrary.png</Icon> | ||
| <ProjectType>CSharp</ProjectType> | ||
| <RequiredFrameworkVersion>2.0</RequiredFrameworkVersion> | ||
| <SortOrder>1</SortOrder> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
1 [](start = 4, length = 24)
Not sure how we determine Sort Order, but this should be similar to the ConsoleApplication (currently 12). Ditto the two VB templates
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Made it 21 so that it comes after the desktop class library template.
|
|
| <Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
|
|
||
| <!-- | ||
| TODO: The VB compiler outputs foo.dll.exe when the output type is Exe even when we pass in /o:foo.dll. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we log a bug for this so it is tracked? And then add a reference to the bug here.
I think this should have a namespace, and the class should be marked "public". Here's the template we have in the CLI today: Refers to: src/Templates/ProjectTemplates/CSharp/.NETCore/ClassLibrary/Class1.cs:1 in 88d9050. [](commit_id = 88d9050, deletion_comment = False) |
| @@ -0,0 +1,10 @@ | |||
| { | |||
| "dependencies": { | |||
| "NETStandard.Library": "1.3", | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think this version exists.
|
@eerhardt namespaces can be omitted for single-file samples. However, for class libs, the class should be marked |
This isn't a sample. It is our template for building class libraries. And I don't think we want to give the impression that we are discouraging class libraries from using namespaces. (Unless that is the impression we want to give - in which case that is news to me.) |
|
@eerhardt was news to me as well. :) However, you are right, for a class library namespace makes a lot more sense than for a console app. |
…escription, icon and sort order.
|
I've added the namespace for the C# class library template. VB types are implicitly under the default namespace and so we don't put explicit namespaces in the templates. |
…generates the targets\props that match the project name
|
@dotnet-bot test this please |
1 similar comment
|
@dotnet-bot test this please |
|
I keep getting failures because the workspace failed to cleaned up: ERROR: [WS-CLEANUP] Cannot delete workspace: remote file operation failed: D:\j\workspace\release_windo---dfb4e122 at hudson.remoting.Channel@2858d3ac:Azure0908111430: java.nio.file.AccessDeniedException: D:\j\workspace\release_windo---dfb4e122\packages\microsoft.vssdk.buildtools\15.0.25604-preview4\tools\vssdk\Microsoft.VsSDK.Build.Tasks.dll Anyone run into this before? |
|
@dotnet-bot test this please |
|
|
@dotnet-bot test Windows_NT Release |
|
@eerhardt Are you guys passing /nr:false to msbuild? |
|
@dotnet-bot test Windows_NT Release |
Not that I can see: https://github.com/dotnet/sdk/blob/master/build.ps1#L62-L78 I didn't even know what that did until you asked and I had to look it up. |
Adding templates for C# Classlibrary, VB Consoleapp\classlibrary
* update urls for in-repo stuff * Documentation cleanup * finish CHECKLIST.md * Update DEVGUIDE.md Co-authored-by: Rainer Sigwald <raines@microsoft.com> * Update README.md Co-authored-by: Rainer Sigwald <raines@microsoft.com> Co-authored-by: Rainer Sigwald <raines@microsoft.com>
@dotnet/project-system @eerhardt @livarcocc @brthor
Also fixes #107