Get Public Key Token from Snk File using Msbuild

I have written a small msbuild script which can be used to get the public key and the public key token from the .snk file. This attachment needs to be executed from the visual studio command prompt . Update the WorkingDir and SnkFilePath as needed, after downloading  the attachment. Run it as msbuild <file name>. the output…

1

Msbuild Dll Probing Search Path Custom

How do we make the Msbuild look in the current directory for the dlls before looking into Gac and other places .Add something like this in your project file: Soln 1 :  <PropertyGroup> <AssemblySearchPath>$(AssemblySearchPath);$(MSBuildProjectDirectory)</AssemblySearchPath> </PropertyGroup> or Soln 2 : Try this works as well . <ItemGroup><CustomTaskInput Include=”MyDll.dll”/></ItemGroup><Target Name=”MYTarget” Inputs=”@CustomTaskInput” Outputs=”abc.txt”><CustomTask /></Target>It works now, It probes the…

1