Giter Site home page Giter Site logo

blog's Introduction

Hi there, I'm Nate ๐Ÿ‘‹

I'm most known on GitHub for my contributions to the .NET project (https://github.com/dotnet) while working for my former employer, Microsoft. I'm now working for AWS and as don't have much time for open source as I'd like.

This is my personal account. Starting in 2019, activity on this account is a reflection of work I am doing in my personal time. This account is NOT used for activity supported or approved by my employer.

For work I'm doing on behalf of my employer, see @mcmasn-amzn.

๐Ÿ“ซ How to reach me:

Pronouns: he/him

blog's People

Contributors

natemcmaster avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

blog's Issues

dotnet build fails when the task project has dependencies

I've cloned your repo to demonstrate the issue:
https://github.com/BalassaMarton/msbuild-tasks
The only thing I changed is that it now has a dependency on Newtonsoft.Json and creates a JObject to make sure that the dependency is loaded.
dotnet build generates the following error:

The "SayHello" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load file or assembly 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'. [...]
File name: 'Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed'
at MSBuildTasks.SayHello.Execute()
at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__25.MoveNext()

I've event toyed around with copying the dependencies to the tasks directory, but nothing worked. Any suggestion why this might happen? I have a small project MSBump that I'm trying to port to .NET Standard, but without success.

Description missing in ts-gen.nuspec

Just a heads up, in the post:

http://www.natemcmaster.com/blog/2017/11/11/build-tools-in-nuget/

In the nuspec, its missing a description element. When running the pack you get:

C:\Program Files\dotnet\sdk\2.0.3\Sdks\NuGet.Build.Tasks.Pack\buildCrossTargeting\NuGet.Build.Tasks.Pack.targets(204,5): error : The required element 'description' is missing from the manifest. [C:\git\NuGetNetBuildTools\src\MyTypescriptGenerator\MyTypescriptGenerator.csproj]
PS C:\git\NuGetNetBuildTools\src\MyTypescriptGenerator> dotnet --info
.NET Command Line Tools (2.0.3)

Product Information:
 Version:            2.0.3
 Commit SHA-1 hash:  12f0c7efcc

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.0.3\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.3
  Build    : a9190d4a75f4a982ae4b4fa8d1a24526566c69df

CV template

Hi Nate,
I visited your website and I love with your cv style, it look so clean. Was it created by latex, could you please share you cv template?. It will very helpful for my job hunt.
Thank you

Feed hard to discover

Add <link rel="alternate" /> tag in <head> to your feed.xml the help RSS readers find your feed. For, you know, the one other person besides me that still uses an RSS reader. ๐Ÿ˜‰

Unable reference task directly with Sdk="Microsoft.NET.Sdk.Web" attribute in Project element

I refer to my test github repository https://github.com/jsacapdev/msbuild-tasks.git, that aids my understanding of your blog posts.

In my test projects, if I dont have the Sdk="Microsoft.NET.Sdk.Web" attribute, I can reference the task directly. If this attribute is present, I can only get it to work via the NuGet package.

In Visual Studio Code, in my Web API project (https://github.com/jsacapdev/msbuild-tasks/blob/master/test/Example.Web.Api/Example.Web.Api.csproj) I cannot refer to a task directly in the *.csproj, only if I reference it via the NuGet package of my task.

I do have a direct reference to the task in another *.csproj (https://github.com/jsacapdev/msbuild-tasks/blob/master/test/MsBuildTasks.Test/MsBuildTasks.Test.csproj), that I can get to work but I need to have a empty Project element.

So the question is - how can I refer to a task in a seperate library if I am using a Web API *.csproj (with an element Project Sdk="Microsoft.NET.Sdk.Web")? Ideally, step into it aswell by attaching to process. There may be something wrong in my code, but I cant get this to work. Even with the Channel 9 samples (Video 1) the demo code seem to have a *.csproj with a empty Project. Does that mean that if you want to use a task in a Web API project, it needs to be packaged up as a NuGet package?

NuGet package does not contain 'tools' folder on pack

Following your post:

http://www.natemcmaster.com/blog/2017/11/11/build-tools-in-nuget/

When I attempt to run the following command:

dotnet pack MyTypescriptGenerator.csproj --output ./ --configuration Release

And then examine the Nu Get package there is no 'tools' sub-folder.

I can see the console app has been published to ./bin/release/publish/... but it does not seem to be making it into the Nu Get package.

My own repo:

https://github.com/jsacapdev/NuGetNetBuildTools

C:\playground\NuGetNetBuildTools\src\MyTypescriptGenerator>dotnet --info
.NET Command Line Tools (2.0.3)

Product Information:
 Version:            2.0.3
 Commit SHA-1 hash:  12f0c7efcc

Runtime Environment:
 OS Name:     Windows
 OS Version:  10.0.14393
 OS Platform: Windows
 RID:         win10-x64
 Base Path:   C:\Program Files\dotnet\sdk\2.0.3\

Microsoft .NET Core Shared Framework Host

  Version  : 2.0.3
  Build    : a9190d4a75f4a982ae4b4fa8d1a24526566c69df

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.