Skip to content

Update AssemblyBuilder documentation - #5491

Merged
gewarren merged 11 commits into
dotnet:mainfrom
MSDN-WhiteKnight:patch-3
Jan 18, 2022
Merged

gewarren merged 11 commits into
dotnet:mainfrom
MSDN-WhiteKnight:patch-3

Conversation

@MSDN-WhiteKnight

@MSDN-WhiteKnight MSDN-WhiteKnight commented Mar 31, 2021 •

Copy link
Copy Markdown
Contributor
  • Add information that saving to files is only supported in .NET Framework
  • Add information that multiple modules, remoting, and app domains are only relevant in .NET Framework
  • Replace AppDomain.DefineDynamicAssembly with AssemblyBuilder.DefineDynamicAssembly available in new runtimes
  • Update examples to avoid APIs not available in new runtimes

Fixes #6889
Fixes #6717
Fixes #5169
Contributes to #5321, #2645, #4207

- Add information that saving to files is only supported in .NET Framework
- Add information that multiple modules, remoting, and app domains are only relevant in .NET Framework
- Replace AppDomain.DefineDynamicAssembly with AssemblyBuilder.DefineDynamicAssembly available in new runtimes
@opbld34

opbld34 commented Mar 31, 2021

Copy link
Copy Markdown

Docs Build status updates of commit bb8b573:

✅ Validation status: passed

File Status Preview URL Details
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/24895.cpp ✅Succeeded View
samples/snippets/csharp/VS_Snippets_CLR/AssemblyBuilderClass/cs/24895.cs ✅Succeeded View
samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyBuilderClass/vb/24895.vb ✅Succeeded View
xml/System.Reflection.Emit/AssemblyBuilder.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@opbld33

opbld33 commented Mar 31, 2021

Copy link
Copy Markdown

Docs Build status updates of commit aadd126:

✅ Validation status: passed

File Status Preview URL Details
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/24895.cpp ✅Succeeded View
samples/snippets/csharp/VS_Snippets_CLR/AssemblyBuilderClass/cs/24895.cs ✅Succeeded View
samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyBuilderClass/vb/24895.vb ✅Succeeded View
xml/System.Reflection.Emit/AssemblyBuilder.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@opbld30

opbld30 commented Apr 9, 2021

Copy link
Copy Markdown

Docs Build status updates of commit dc2d027:

✅ Validation status: passed

File Status Preview URL Details
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/24895.cpp ✅Succeeded View
samples/snippets/csharp/VS_Snippets_CLR/AssemblyBuilderClass/cs/24895.cs ✅Succeeded View
samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyBuilderClass/vb/24895.vb ✅Succeeded View
xml/System.Reflection.Emit/AssemblyBuilder.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@BillWagner

Copy link
Copy Markdown
Member

ping @carlossanlop to route this for review

@steveharter steveharter left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the updates.

I haven't been following .NET Framework vs. .NET (core) doc changes. It appears there is only one set of doc for both, with .NET Framework having basically footnotes for the extra functionality?

@gewarren

Copy link
Copy Markdown
Collaborator

Thanks for the updates.

I haven't been following .NET Framework vs. .NET (core) doc changes. It appears there is only one set of doc for both, with .NET Framework having basically footnotes for the extra functionality?

Yes, in the API docs, the doc comments are shared between .NET Framework and .NET (Core).

@tdykstra tdykstra left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MSDN-WhiteKnight

Copy link
Copy Markdown
Contributor Author

It appears there is only one set of doc for both, with .NET Framework having basically footnotes for the extra functionality?

Yes, that's the idea. Because .NET Core reflection emit functionality is a subset of .NET Framework's, it's best to have the main part, describing functionality shared by both implementations, and additional .NET Framework-specific notes.

@MSDN-WhiteKnight

Copy link
Copy Markdown
Contributor Author

The CI build complains about the absence of project files for snippets. I've added projects for C# and VB, but the C++/CLI is a bit more complicated, because it is not supported by .NET SDK, and requires VS with C++/CLI component installed. Are project files for C++/CLI snippet required for merge here?

@gewarren

Copy link
Copy Markdown
Collaborator

The CI build complains about the absence of project files for snippets. I've added projects for C# and VB, but the C++/CLI is a bit more complicated, because it is not supported by .NET SDK, and requires VS with C++/CLI component installed. Are project files for C++/CLI snippet required for merge here?

@adegeo Could you answer this one?

@opbld31

opbld31 commented Sep 27, 2021

Copy link
Copy Markdown

Docs Build status updates of commit bcb49d5:

✅ Validation status: passed

File Status Preview URL Details
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/24895.cpp ✅Succeeded View
samples/snippets/csharp/VS_Snippets_CLR/AssemblyBuilderClass/cs/24895.cs ✅Succeeded View
samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyBuilderClass/vb/24895.vb ✅Succeeded View
xml/System.Reflection.Emit/AssemblyBuilder.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@opbld30

opbld30 commented Sep 27, 2021

Copy link
Copy Markdown

Docs Build status updates of commit a764013:

✅ Validation status: passed

File Status Preview URL Details
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/24895.cpp ✅Succeeded View
samples/snippets/csharp/VS_Snippets_CLR/AssemblyBuilderClass/cs/24895.cs ✅Succeeded View
samples/snippets/csharp/VS_Snippets_CLR/AssemblyBuilderClass/cs/AssemblyBuilderClass.csproj ✅Succeeded
samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyBuilderClass/vb/24895.vb ✅Succeeded View
samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyBuilderClass/vb/AssemblyBuilderClass.vbproj ✅Succeeded
xml/System.Reflection.Emit/AssemblyBuilder.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@adegeo

adegeo commented Sep 27, 2021

Copy link
Copy Markdown
Contributor

@MSDN-WhiteKnight When you want the snippets system to run VS, add a snippets.5000.json file to the same folder as the project with the following content:

{
    "host": "visualstudio"
}

@MSDN-WhiteKnight

MSDN-WhiteKnight commented Sep 28, 2021 •

Copy link
Copy Markdown
Contributor Author

Added C++/CLI project, CI build passes now. Snippets build succeeds, but openpublishing now fails with bizarre errors.

@opbld32

This comment has been minimized.

@adegeo adegeo closed this Sep 28, 2021
@adegeo adegeo reopened this Sep 28, 2021
@opbld33

This comment has been minimized.

@opbld30

opbld30 commented Sep 29, 2021

Copy link
Copy Markdown

Docs Build status updates of commit 9a5f7a5:

✅ Validation status: passed

File Status Preview URL Details
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/24895.cpp ✅Succeeded View
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/AssemblyBuilderClass.vcxproj ✅Succeeded
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/snippets.5000.json ✅Succeeded
samples/snippets/csharp/VS_Snippets_CLR/AssemblyBuilderClass/cs/24895.cs ✅Succeeded View
samples/snippets/csharp/VS_Snippets_CLR/AssemblyBuilderClass/cs/AssemblyBuilderClass.csproj ✅Succeeded
samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyBuilderClass/vb/24895.vb ✅Succeeded View
samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyBuilderClass/vb/AssemblyBuilderClass.vbproj ✅Succeeded
xml/System.Reflection.Emit/AssemblyBuilder.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

Co-authored-by: Genevieve Warren <[email protected]>
@MSDN-WhiteKnight
MSDN-WhiteKnight requested a review from a team as a code owner January 16, 2022 06:21
@opbld33

opbld33 commented Jan 16, 2022

Copy link
Copy Markdown

Docs Build status updates of commit fbe2477:

✅ Validation status: passed

File Status Preview URL Details
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/24895.cpp ✅Succeeded View
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/AssemblyBuilderClass.vcxproj ✅Succeeded
samples/snippets/cpp/VS_Snippets_CLR/AssemblyBuilderClass/cpp/snippets.5000.json ✅Succeeded
samples/snippets/csharp/VS_Snippets_CLR/AssemblyBuilderClass/cs/24895.cs ✅Succeeded View
samples/snippets/csharp/VS_Snippets_CLR/AssemblyBuilderClass/cs/AssemblyBuilderClass.csproj ✅Succeeded
samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyBuilderClass/vb/24895.vb ✅Succeeded View
samples/snippets/visualbasic/VS_Snippets_CLR/AssemblyBuilderClass/vb/AssemblyBuilderClass.vbproj ✅Succeeded
xml/System.Reflection.Emit/AssemblyBuilder.xml ✅Succeeded View

For more details, please refer to the build report.

Note: Broken links written as relative paths are included in the above build report. For broken links written as absolute paths or external URLs, see the broken link report.

For any questions, please:

@gewarren
gewarren merged commit 1465300 into dotnet:main Jan 18, 2022
@gewarren

Copy link
Copy Markdown
Collaborator

Thank you @MSDN-WhiteKnight

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet