# TapPackage create error in Visual Studio and Command line

**URL:** <https://forum.opentap.io/t/tappackage-create-error-in-visual-studio-and-command-line/808>\
**Category:** General\
**Tags:** plugin\
**Created:** [August 18, 2022, 6:08pm UTC](https://forum.opentap.io/t/tappackage-create-error-in-visual-studio-and-command-line/808 "2022-08-18T18:08:39Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![priram](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@priram](https://forum.opentap.io/u/priram)\
**Post date:** [August 18, 2022, 6:08pm UTC](https://forum.opentap.io/t/tappackage-create-error-in-visual-studio-and-command-line/808/1 "2022-08-18T18:08:40Z")

</div>

Hello,

I am getting an error while creating a tappackage. I was able to successfully create package on my old laptop without any issues. Not sure if I am missing any dependency. I get this error. Can anyone help me?

Thank you,  
Priya

| Severity | Code | Description | Project | File | Line | Suppression State |
| --- | --- | --- | --- | --- | --- | --- |
| Error | | A CliAction has thrown an exception: Object reference not set to an instance of an object. | NWDIAnalyticsPlugin | C:\Users\prramesh.nuget\packages\opentap\9.18.4\build\OpenTap.targets | 68 | |

| Severity | Code | Description | Project | File | Line | Suppression State |
| --- | --- | --- | --- | --- | --- | --- |
| Error | MSB3073 | The command .\tap package create C:\GIT\nwdi-tapplugin\NWDIAnalyticsPlugin\NWDIAnalyticsPlugin\package.xml --install exited with code 193. | NWDIAnalyticsPlugin | C:\Users\prramesh.nuget\packages\opentap\9.18.4\build\OpenTap.targets | 68 | |

---

<div class="post-metadata">

**Author:** ![darwin](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@darwin](https://forum.opentap.io/u/darwin)\
**Post date:** [September 1, 2022, 1:54am UTC](https://forum.opentap.io/t/tappackage-create-error-in-visual-studio-and-command-line/808/2 "2022-09-01T01:54:08Z")

</div>

Hi @priram ,

Is it possible for you to give more information on the

1. the .csproj project style use .NET SDK Style or the utilizes the old style

- .csproj .NET SDK style

```xml
<Project Sdk="Microsoft.NET.Sdk">

```

- .csproj old style

```xml
<?xml version="1.0" encoding="utf-8 "?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">

```

1. My Release folder with TAP 9.18.4 and able to build successfully , do compare the basic stuffs required with your Release Bin Folder  

2. If you are using Dotfucator, please ensure the setup is done in you new pc.

Best Regards  
Darwin Subramaniam

---

<div class="post-metadata">

**Author:** ![priram](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@priram](https://forum.opentap.io/u/priram)\
**Post date:** [October 3, 2022, 6:52pm UTC](https://forum.opentap.io/t/tappackage-create-error-in-visual-studio-and-command-line/808/3 "2022-10-03T18:52:44Z")

</div>

Hello,  
I am still having the same issue and could not identify the reason. My response below to your questions.

My project SDK style is set as

My release folder screen shot

 ![image](https://us1.discourse-cdn.com/flex020/uploads/opentap/original/1X/d6da1acc4302c4f1a65ee353372669a1206c4c41.png)

---

<div class="post-metadata">

**Author:** ![rolf\_madsen](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rolf\_madsen](https://forum.opentap.io/u/rolf_madsen)\
**Post date:** [October 5, 2022, 8:11am UTC](https://forum.opentap.io/t/tappackage-create-error-in-visual-studio-and-command-line/808/4 "2022-10-05T08:11:10Z")

</div>

Hi @priram,

In you package.xml file, what is Version(e.g `<Package Version="...">` element) set to ? I saw an issue similar to this when the Version is not a valid semantic version.

Otherwise, maybe you can create a test project, where the issue is reproduced?

---

<div class="post-metadata">

**Author:** ![priram](https://avatars.discourse-cdn.com/v4/letter/p/e8c25b/32.png) [@priram](https://forum.opentap.io/u/priram)\
**Post date:** [October 5, 2022, 4:02pm UTC](https://forum.opentap.io/t/tappackage-create-error-in-visual-studio-and-command-line/808/5 "2022-10-05T16:02:20Z")

</div>

Thank you so much @rolf_madsen. It was the issue with the Version. After I fixed the correct version and the space it worked fine.

---

<div class="post-metadata">

**Author:** ![rolf\_madsen](https://avatars.discourse-cdn.com/v4/letter/r/43a26b/32.png) [@rolf\_madsen](https://forum.opentap.io/u/rolf_madsen)\
**Post date:** [October 6, 2022, 7:29am UTC](https://forum.opentap.io/t/tappackage-create-error-in-visual-studio-and-command-line/808/6 "2022-10-06T07:29:58Z")

</div>

No problem! This is fixed in OpenTAP 9.20 by adding a better error message. Issue: [null reference during 'tap package create' · Issue #858 · opentap/opentap · GitHub](https://github.com/opentap/opentap/issues/858)
